Code: |
check_steplib_allocated: /* say 'In check_steplib_allocated in 'rname ; trace ?a */ SteplibAddedRc = 0 /* Default is it WAS allocated */ X = MSG('OFF') Address LINK 'CSLULXSB' if rc <> 0 then do ADDRESS TSO "STEPLIB ADD DA('xxxx.xxxx.xxxx.xxxx.RESLIB') LAST" Address LINK 'CSLULXSB' SteplibAddedRc = -3 /* Indicate it WASN'T allocated. */ end X = MSG('ON') /* Reset */ return SteplibAddedRc |
Quote: |
Using TEST.SPOC(LBBK) Current PLEX name PLEXB 170 *-* Address LINK 'CSLULXSB' +++ RC(-3) +++ MSSPOC next cmd /STA TRAN LBBK MSSPOC next cmd /STA TRAN LBBK TFYKP0 MSSPOC next cmd /STA PGM TFYKP0 |
misi01 wrote: |
(I tried appending the Rexx code via the open/close CODE tags, but it kept on blanking out my entry. Could you test and see if it's the same for you?) |
Code: |
/* rexx */ "ALLOCATE FILE(MYLOAD) DATASET('JIM.LOAD') SHR" if RC = 0 then push "TSOLIB ACTIVATE FILE(MYLOAD)" exit ⋮ ? back in TSO/E READY environment, start the REXX exec ⋮ ? invoke commands and programs from TSOLIB data set. ⋮ |
output generated using printer-friendly topic mod. All times are GMT - 5 Hours