I can get the info but it's a bit messy to go straight to the TSO commands. I want to do a load of stuff in a macro and then issue SUB NX.
To do this in TSO (this is executed in VIEW in batch ISPF run under TWS)... I need to have the file allocated to DD SCANWORK...
dsi = LISTDSI("SCANWORK FILE")
"EXCLUDE '//*' 1 ALL "
"DELETE X ALL "
CALL MSG "ON"
CALL OUTTRAP "O."
ADDRESS TSO "SUBMIT '"sysdsname"' "
CALL OUTTRAP "OFF"
CALL MSG "OFF"
PARSE VAR o.1 . jobjes .
"EXCLUDE '//*' 1 ALL "
"DELETE X ALL "
CALL MSG "ON"
CALL OUTTRAP "O."
ADDRESS TSO "SUBMIT '"sysdsname"' "
CALL OUTTRAP "OFF"
CALL MSG "OFF"
PARSE VAR o.1 . jobjes .
"EXCLUDE '//*' 1 ALL "
"SUB NX "
jobjes = zjsubjob"("zjsubjes")"
"SUB NX "
jobjes = zjsubjob"("zjsubjes")"
I searchd the ISPF EDIT manual but found no references.