Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to aviod running file reduction script ?

Hi All

I want to reduce my QV data file size by create a sample QV Doc.

SET vDevelopment = 1; // 1 min 55 sec  local        QVD_PY      10% of Sample data.

above script will load all the sample raw data file. which can reduce the file size from 35 Mb to 14 Mb.

I want to further to reduce the total file size from 14Mb to 9 Mb , by below script :-

NEW:

NOCONCATENATE

LOAD *

RESIDENT sales_table WHERE BRAND_='HMS';

DROP TABLES sales_table;

Now my question is how to make my program only run above script when run :-

SET vDevelopment = 1; // 1 min 55 sec  local        QVD_PY      10% of Sample data.

As i have other script:-

set vDevelopment = 2;

it will run full raw data file , and i want to avoid running :-

NEW:

NOCONCATENATE

LOAD *

RESIDENT sales_table WHERE BRAND_='HMS';

DROP TABLES sales_table;

Hope some one can advise me.

Paul

Labels (1)
1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this using IF

IF vDevelopment = 1 THEN

NEW:

NOCONCATENATE

LOAD *

RESIDENT sales_table WHERE BRAND_='HMS';

DROP TABLES sales_table;

END IF;

Regards,

Jagan.

View solution in original post

3 Replies
paulyeo11
Master
Master
Author

Below is my sample QV Doc

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this using IF

IF vDevelopment = 1 THEN

NEW:

NOCONCATENATE

LOAD *

RESIDENT sales_table WHERE BRAND_='HMS';

DROP TABLES sales_table;

END IF;

Regards,

Jagan.

paulyeo11
Master
Master
Author

Hi Jagan

Thank you vey much , it work fine.

Paul