I have the following:
/* REXX */
ARG OUTP
STAT = MSG('OFF')
UID = SYSVAR(SYSUID)
ADDRESS ISPEXEC
"EDIT DATASET('TEST.MYDSN')"
ADDRESS TSO
"FREE FILE(MYDD)"
"ALLOC FILE(MYDD) ",
"DATASET('TEST.MYDSN') SHR"
...
I want to interrogate the COMMAND LINE upon returning from the edit session of 'TEST.MYDSN'. For example:
ADDRESS ISPEXEC
"EDIT DATASET('TEST.MYDSN')"
if COMMAND = 'QUIT' then exit
Im sure that "COMMAND" above is not available or correct. Does anyone know how to do this?
/* REXX */
ARG OUTP
STAT = MSG('OFF')
UID = SYSVAR(SYSUID)
ADDRESS ISPEXEC
"EDIT DATASET('TEST.MYDSN')"
ADDRESS TSO
"FREE FILE(MYDD)"
"ALLOC FILE(MYDD) ",
"DATASET('TEST.MYDSN') SHR"
...
I want to interrogate the COMMAND LINE upon returning from the edit session of 'TEST.MYDSN'. For example:
ADDRESS ISPEXEC
"EDIT DATASET('TEST.MYDSN')"
if COMMAND = 'QUIT' then exit
Im sure that "COMMAND" above is not available or correct. Does anyone know how to do this?