It is invoking an ISPF macro to check jcl error (jj) . this macro is returning some return code i want to use this return code :
The code of macro :
"ISREDIT MACRO (PARMS)"
If RC<>0 then do
say "Macro not invoked as an Edit macro"
rc=D0JEJJCC("%D0JEJJ JJ" Parms)
and the rexx routine which is calling this macro :
INP1 = 'USER.TEST.PRADEEP.JCLLIB(JCLEX1)'
"VIEW DATASET('"INP1"') MACRO(JJC)"
IF RC > 4 THEN
SAY JCL ERROR
ELSE SAY OK
I have two concerns :
1. I don't want to open that jclex1 code as i am using here view mode ,
if there is any way to invoke this macro without opening this member either in any of the mode .
2. I want to use the return code of the macro ,
but as this opens the member and i have to use PF3 to come out of it it gives RC = 0 as macro has successfully ran . but i want the return code which is returned inside .