In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps
only,can any one answer me please?

Answers were Sorted based on User's Feedback



In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps only,can any one answer me please?..

Answer / muthu

Hi All,

For this question we have to consider the following
scenario.

Step 1 - it has to be executed at any cost
Step 2 - it has to be executed at any cost
Step 3 - it should not be executed if the 1st and 2nd steps
executed successfully.
Step 4 - it should not be executed if the 1st and 2nd steps
executed successfully.
Step 5 - it has to be executed at any cost

Step 1 - No need to code any cond codes
Step 2 - COND = (0, NE) (This execs if step1s rc is 0)
Step 3 - COND = (0, EQ) (This step get skip if step 2's rc
is 0)
Step 4 - COND = (0, EQ,step2) (This step get skip if step
2's rc is 0)
Step 5 - COND = (0, NE,step2) (This step execs if step2's
rc is 0).

This is my assumption correct me if am wrong.

Is This Answer Correct ?    22 Yes 1 No

In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps only,can any one answer me please?..

Answer / mahesh

//mat021ex job notify=&sysuid,class=a,msgclass=a,
cond=(step2,00,eq)
//step1 exec
//step2 exec condition satisfied remaining steps areskipped
//step3 exec
//step4 exec
//step5 exec cond=even

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More JCL Interview Questions

What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

2 Answers   Patni,


MOD, DELETE; What does a disposition of (,DELETE) mean ?

3 Answers  


What is the format of comment statement?

0 Answers  


Explain how can a jobs execution priority be modified?

0 Answers  


once we submitted the job to the operating system, how can we cancel the job before execution?

2 Answers  






which parameter is used to check the syntax of a jcl without executing it?

0 Answers   IBM,


Is their any limit for data sets?

0 Answers  


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

3 Answers  


How to overide the symbol parameter in the jcl ?

3 Answers   UST,


what is the alternative to model parameter?

0 Answers  


One of My Job is running in production, which contains five steps?i want to pass the input to FIFTH step while running is it possible? if how?

1 Answers   CTS,


What is Backward Referencing ?

3 Answers   HSBC,


Categories