BillyBoyo wrote:I suggest that you consult the manual and many examples you can locate with a search engine. If you code it without conditions, it will be unconditional. If you code it with conditions, it will be conditional.
Thanks for you replay; yes I coded it without LASTCC/MAXCC condition.
I had written a simple JCL
//TESTIDCC JOB CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=&SYSUID
//*-----------------------------------------------------------------
//STEP01 EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
ALLOCATE DATASET('MYID.TEST.DATA1') -
LRECL(80) -
RECFM(V B) -
BLKSIZE(800) -
SPACE(1,1) -
CYL
ALLOCATE DATASET('MYID.TEST.DATA2') -
LRECL(80) -
RECFM(V B) -
BLKSIZE(800) -
SPACE(1,1) -
CYL
/*
When there is a MYID,TEST.DATA1 dataset ,but not MYID.TEST.DATA2; so the first command in the job card will failure, but it seems the second command is executed successfully.
This is different behavior compared with shell script on an unix platform, where a command failure will cause the script to exit immediately, but IDCAMS seems will continue to execute.
so I wish to confirm this, because i couldn't find the explicit statement from IDCAMS manual document.