PJansen630014

How to declare/publish a variable dynamic

Discussion created by PJansen630014 on Apr 10, 2017
Latest reply on Apr 26, 2017 by PJansen630014
Is there a way to declare/publish a variable dynamic.

I have an (external) file with a list of variables which I want to use as a variable in a flow/job/script.
In the script I want to PUBLISH these vars, without knowing which VARs are used.
pe.
VAR_FIRST='John'
VAR_LAST='Smith'
VAR_GENDER='M'
VAR_....

:SET &HND#=PREP_PROCESS_FILE(,&PARAMFILE#,,"COL=DELIMITER,DELIMITER=*:*")
:PROCESS &HND#
!   Get the var-name and its value
:   SET &VARNAME#   = GET_PROCESS_LINE(&HND#,1)
:   SET &VALUE#          = GET_PROCESS_LINE(&HND#,2)

!   The following command must set the variables dynamic
!          SET VAR_FIRST= &VALUE# etc
:   PSET &VARNAME#  = &VALUE#
:ENDPROCESS
:CLOSE_PROCESS &HND#

I hope the proble/question is clear

Someone an idea how to achieve this

Thanks in advance

Outcomes