My JCL have five steps & I created new versions of GDG in
first step through fourth step & fifth step I was refered
Step one GDG version. My JCL got abend at 4th step and how
I can restart my JCL Please let me know the answers.

//STEP1 EXEC GDG1(+1) DISP=(NEW)
//STEP2 EXEC GDG1(+2) DISP=(NEW)
//STEP3 EXEC GDG1(+3) DISP=(NEW)
//STEP4 EXEC GDG1(+4) DISP=(NEW)
//STEP5 EXEC GDG1(+1) DISP=(OLD)

Answers were Sorted based on User's Feedback



My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / satheesh

JCL got Abended at 4th step, You need to restart from STEP4
In STEP4 use GDG1(+1),
In STEP5 use GDG1(-2).
Hope this make sense.

Is This Answer Correct ?    56 Yes 3 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / arif

Here 2 scenario's are possible:

1) When dataset gets created in step 4 in case of
(DISP=NEW,CATLG,CATLG)

You need to restart from step 5:
In STEP5 use GDG1(-3).

2) When dataset doesn't get created in step 4 in case of
(DISP=NEW,CATLG,DELETE)
You need to restart from STEP4
In STEP4 use GDG1(+1),
In STEP5 use GDG1(-2).

Is This Answer Correct ?    14 Yes 0 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / chandrababu

Plz ignore the previous ANS#5,

THis is correct one:

JCL got Abended at 4th step, You need to restart from STEP4
In STEP4 use GDG1(+1),
In STEP5 use GDG1(-2).

Is This Answer Correct ?    13 Yes 2 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / virender

GDS being catalogued or not depends upon the disposition
(DISP) specified upon the abnormal termination of the job.
If the data sets are catalogued, you need to use GDG(-3)in
the rerun in step 5. Otherwise you can simply restart from
top.

Is This Answer Correct ?    11 Yes 4 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / khbnaidu

Sathish ur answer is correct.

Is This Answer Correct ?    8 Yes 2 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / t srinivasa chary

we need to restart from step 4
In step4 use GDG(+1)
In step5 use GDG(-2)

Is This Answer Correct ?    6 Yes 0 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / atul

Sorry to confuse in the Ques. I just thought we r using GDG in step4 as OLD so i suggested to be use current GDG(+0) but i came to know that it creating the new one so we use GDG(+1) in step 4 not GDG(+0).

Corrected Ans 10 as below

When dataset doesn't get created in step 4 in case of
(DISP=NEW,CATLG,DELETE)
You need to restart from STEP4
In STEP4 use GDG1(+1),
In STEP5 use GDG1(-2).



Sorry for in convenience. :)

Is This Answer Correct ?    1 Yes 0 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / ajay kumar ande

WE CAN USE COND=(04,LT) AT JOBLIB,IF WE GOT ABEND IN STEP4 IT BYPASSES AND EXECUTES NEXT STEP SO THAT WE CAN REFER STEP1

Is This Answer Correct ?    1 Yes 1 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / margaret

since GDG is not cataloged until the successful end of the
step, Your best bet is to use a referback to point to the
dataset in the subsequent step. This way you will get the
appropriate dataset prior to cataloging.

Is This Answer Correct ?    6 Yes 12 No

My JCL have five steps & I created new versions of GDG in first step through fourth step &..

Answer / atul

I believe, restarting from step 4 we need to use GDG1(0),

When dataset doesn't get created in step 4 in case of
(DISP=NEW,CATLG,DELETE)
You need to restart from STEP4
In STEP4 use GDG1(0),
In STEP5 use GDG1(-2).

Please correct me if i am wrong.

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More JCL Interview Questions

What are the default system and catalog libraries in JCL?

2 Answers   Infosys,


Explain the function of the dd dcb keyword?

0 Answers  


IF WE GIVE COND on step3 then, What does the following mean ? And Just adding to that, All the below COND are VALID as per the specifications. (i) COND = (8,LT,step1,step2) ---(AND/OR ?) (ii) COND = (8,LT,step1,step2, ONLY), (iii) COND = (8,LT,step1,ONLY) will it execute only if this condition is true or only if step1 ABENDS ? (iv) COND = (8,LT,step1,step2,EVEN), (v) COND = (8,LT,step1,EVEN) ?

2 Answers   IBM,


Name the statement which can be used to send data to another mvs jes3 node?

0 Answers  


what is the compile process of cobol program expalin with code

0 Answers   IBM,






Explain the jcl exec statement?

0 Answers  


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,


Why block size is multiple of lrecl in jcl?

0 Answers  


what is “Cond= even” and “Cond=only”?

0 Answers  


What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?

2 Answers   IBM,


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  


IN DFSORT sum fields=none is usec to remove duplicates.how to write the duplicates in another dataset?

2 Answers  


Categories