Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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,

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/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
Partner Ambassador/MVP
Partner Ambassador/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