Which COND paramter will u use to execute the step only if
the previous step does not execute
Answers were Sorted based on User's Feedback
Answer / dutta
It is said that if step does not execute..it doesn't said that step execute abnormally.
so i think we must use Cond=EVEN.it says even if previous step excecute abnormally or normally then next step must execute.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / y@$w@nth
//step01 EXEC PGM=prog1
//indd1 DD DSN=userid.sample.indataset1
//outdd2 DD DSN=userid.sample.outdataset1
//step02 EXEC PGM=prog1,COND=(0,EQ,STEP01,4,EQ,STEP01)
//indd2 DD DSN=userid.sample.indataset2
//outdd2 DD DSN=userid.sample.outdataset2
| Is This Answer Correct ? | 3 Yes | 9 No |
i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0
How do you skip a particular step in a proc/JOB?
Can we write same stepname for one or more steps in on job ?
Name the system library from which modules are retrieved at execution
Explain about LMPUT-
What are the parameter in the job card wihtout which job won't run........
What are the differences between JES2 & JES3 ?
what is the control cards?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
how to code instream data in procedure?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
How to exclude the duplicate records from two concateded flat files (records from both files must be removed)?