REXX macro - To extract the data from PROC to REXX variable
Posted: Thu Oct 16, 2008 10:01 pm
Hi all,
My reqt is to read a line from PROC and get the contents in a REXX variable till the mentioned text through REXX macro.
If I want to get the symbolic variable used in PROC to be extracted in REXX variable after the qualifier FLDABC, my code will
The PROC line is //TST11IN DD DSN=ABC.TEST.FLDABC&SYMPM,DISP=SHR
Code
PARSE VAR FLDLINE FLDLN1 '.FLDABC&' FLDLN2
where FLDLINE will contain the whole line and FLDLN2 will contain the symbolic variable used after FLDABC qualifier.
The question is whether I can pass the FLDABC dynamically. Means can i store it in any rexx variable and can use it with parse.
The below mentioned code is not working.
Please suggest me how to solve this.
Thanks
Chidam
My reqt is to read a line from PROC and get the contents in a REXX variable till the mentioned text through REXX macro.
If I want to get the symbolic variable used in PROC to be extracted in REXX variable after the qualifier FLDABC, my code will
The PROC line is //TST11IN DD DSN=ABC.TEST.FLDABC&SYMPM,DISP=SHR
Code
PARSE VAR FLDLINE FLDLN1 '.FLDABC&' FLDLN2
where FLDLINE will contain the whole line and FLDLN2 will contain the symbolic variable used after FLDABC qualifier.
The question is whether I can pass the FLDABC dynamically. Means can i store it in any rexx variable and can use it with parse.
The below mentioned code is not working.
TEXT1 = .FLDABC&
PARSE VAR FLDLINE FLDLN1 TEXT FLDLN2
PARSE VAR FLDLINE FLDLN1 TEXT FLDLN2
Please suggest me how to solve this.
Thanks
Chidam