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)

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the disposition of sysout datasets be set for an entire jobstream?

840


Brief description of inline procedure of jcl.

685


Explain the function of a dd statement?

659


How to pass data to a program that is coded in an exec statement?

825


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2263






how you can access an uncataloged dataset in a JCL?

653


In job processing, what happens in conversion stage?

739


What is the significance of addrspc parameter in the exec statement?

620


Name the parameters which can be used to limit the number of records written to a sysout dataset?

654


write a jcl to execute a job by 7:00 am on jan 20,1986?

699


What is NOTCAT ?

738


what happens in execution stage in job processing?

652


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

734


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

801


Is condition checking possible in jcl? If yes, how?

737