DanielGates628573

Dynamically reading variable obect

Discussion created by DanielGates628573 on Jan 9, 2018
Latest reply on Jan 12, 2018 by Wolfgang_Brueckler_1288
Hello,

Hope this is an easy question ..

If I have a variable object as below:

sh6t04hydy8y.png

and I want to declare and assign all the values in it to a variable e.g.

VAR1 = 'TEST'
VAR2 = 'TEST2'

Do I do something similar to:

:SET &HND#=PREP_PROCESS_VAR(DATABASE_MAINTENANCE)
:
PROCESS &HND#
:   
SET &VK# = GET_PROCESS_LINE(&HND#,1)
:   
SET &VALUE# = GET_PROCESS_LINE(&HND#,2)
:   
PRINT "&VK# &VALUE#"
:
ENDPROCESS

If so how do I get it to resolve VAR1 to equal "TEST"

or is GENERATE_SCRIPT_VARS for this exact purpose?

Hope this makes sense?

Cheers,

Dan.

Outcomes