AnsweredAssumed Answered

Read VARA - Write in TXT File

Question asked by TomTomTut on Mar 15, 2018
Latest reply on Mar 23, 2018 by Wolfgang_Brueckler_1288
Hello there,

well, i want to read a specific Information out of the VARA
I want to write that i a text file.

What i have done so far:

:   SET &HND03# = PREP_PROCESS_VAR("&VARANAME","WLG_RUNNING_FLAG")
:   PROCESS &HND03#
:     SET &RET03# = WRITE_PROCESS(&HND03#,"&SCRIPT_RUNNING_FLAG_PFAD#&SCRIPT_RUNNING_FLAG_DATEI01#",&WSLRUNNINGHOST#,&WSLRUNNINGLOGIN#,OVERWRITE,,,,)
:     PRINT **************
:     PRINT &&RET03# &RET03#
:     PRINT *************
:   ENDPROCESS

the &HND03# reads the whole Line out of the VARA.
the WRITE_PROCESS write the whole Line in the TEXT File, of course.

BUT i just want him to write the 3 ROW from the VARA with the Key WLG_RUNNING_FLAG

this is in the VARA:
WLG_RUNNING_FLAG;C:\temp\;wsl.running;Automic_Prozess_gestartet;Value4;Value5

i want to write in the text file:    Automic_Prozess_gestartet

how can i realize that in one JOBS

i hope you can help me again :)

Thanks alot

Kind regards
Thomas

             










Outcomes