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: 
Not applicable

which priority is defined variable in load script and handed over it from batch file

hi all,

defined valiable in a load script is following.

/ vcFlg = 'N'

if it is handed over valiable from batch file such as following

/ vcFlg = 'Y'

Then which is first priority in this load script?

and what can i do the later will be first priority?

Regards,

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

The value set in the load script will have priority. The problem is how to accept an override from the command line. The method I have used is to use a second variable (vcFlg2) in the script like this.

LET vcFlg2 = if(len('$(vcFlg)')>0, ('$(vcFlg)', 'N');  // Take variable from cmdline if provided, otherwise set default

SET vcFlg=;    // Reset variable to null

.. then use vcFlg2 in the script

-Rob

View solution in original post

1 Reply
rwunderlich
MVP
MVP

The value set in the load script will have priority. The problem is how to accept an override from the command line. The method I have used is to use a second variable (vcFlg2) in the script like this.

LET vcFlg2 = if(len('$(vcFlg)')>0, ('$(vcFlg)', 'N');  // Take variable from cmdline if provided, otherwise set default

SET vcFlg=;    // Reset variable to null

.. then use vcFlg2 in the script

-Rob