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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sat_tok52
Creator
Creator

Script Problem

Hi Guru's,

As per my customer requirement i have to run qvd data in UAT Server without Where condition for user testing  and suppose if i moved that qvw into production server after  testing completion it should run same qvd  with where condition .How would i write the script.I tried like below.is It's not working ?Any help.

If vservername='UAT' then

Load

A,B

From Database

Endif

If vservername='Production' then

Load

A,B

From Database

Where Year=2015

Endif

Thanks,

Sateesh

Labels (1)
1 Reply
maxgro
MVP
MVP

Replace autogenerate with your load from db


set vservername='UAT';

If vservername='UAT' then

  trace UAT;

  Load

  1 as A, 2 as B

  AutoGenerate 100;

Endif

If vservername='Production' then

  trace Production;

  Load

  1 as A, 2 as B

  AutoGenerate 20

  Where 1=1;

Endif