Why not try IF logic in the JCL. Force your rexx step to return something other than a 0 return code.
// IF (ABEND | RC = 0 ) THEN
//SUPERC EXEC PGM=SUPERC,TIME=1
//SYSPRINT DD SYSOUT=*
//OLD DD DSN=dsn1,DISP=SHR
//NEW DD DSN=dsn2,DISP=SHR
// ELSE
// ENDIF
Here's an example of how I trap the username and then use it in a command.
username = value('username',,'ENVIRONMENT')
cmd = 'cd /D C:\Documents and Settings\' || username || '\Favorites\'
cmd
I'm unsure how to get the servername.
I'm using a version of REXXX named REGINA REXX. IT's free and works fine in W2000 and NT. I/O are handle differently than I'm use to with MVS. Otherwise it's very similar to REXX on VM and MVS.
Try http://www.lightlink.com/hessling/Regina/ for more PC REXX information
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.