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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jvitantonio
Specialist III
Specialist III

Assign value to variable in load time

Hi,

I'd like to know if it if possible to make a query to a DB and assign a value return from the query to a variable while a script is being executed?

1 Solution

Accepted Solutions
luciancotea
Specialist
Specialist

Use PEEK() function. See help for example.

View solution in original post

2 Replies
luciancotea
Specialist
Specialist

Use PEEK() function. See help for example.

jvitantonio
Specialist III
Specialist III
Author

Thanks. I used it like this:

Temp:

load FIELD;

;

sql select FIELD from TABLENAME

;

LET variable = PEEK('FIELD');