Hi Tim, try this - for example:
//*JOBPARM SYSAFF=lparname (SMFID)
//IKJEFT01 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
CONSOLE SYSCMD(F stcnameoftsmserver,-
GRANT AUTHORITY userid CLASSES=SYSTEM)
CONSOLE SYSCMD(F stcnameoftsmserver,-
GRANT AUTHORITY userid CLASSES=SYSTEM)
/*
The second command will proceed, even if the first command fails.
By the way, can you show me your solution with the script?! I do not know THIS
solution - thanks in advance!
yours sincerely
Othmar
-----Ursprüngliche Nachricht-----
Von: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] Im Auftrag
von Tim Brown
Gesendet: Mittwoch, 21. November 2007 15:16
An: ADSM-L AT VM.MARIST DOT EDU
Betreff: [ADSM-L] TSM commands via Z/OS Batch rc 11
Have daily TSM commands that run via batch jobs on Z/OS
The command files have multiple commands and if any one fails
it prevents the others from executing
ANS8001I Return code 11.
ANS8029E Macro processing terminated.
ANS8002I Highest return code was 11.
Is there a way to allow the other commands to execute if a previous one fails
The wokraround is to place the commands in separate files and run the
batch job with multiple steps
Tim
|