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

What is the maximum length of a single line of jcl?

825


what sort card you will use to copy the data from one dataset to another dataset?

722


How do you submit a job for execution?

637


What is the function of the dd avgrec keyword in sms datasets?

835


What is the function of //cntl statement?

828






What is the purpose of dd * statement in jcl?

793


Matching Logic in Jcl not in cobol.Could any one please answer this question

3669


is there any way to execute more than one proc in the same exec statement at the same time..?

2105


what are the various stages of job processing?

736


What is the significance of addrspc parameter in exec statement?

724


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1033


Explain the purpose of the dd keylen parameter?

668


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

705


how can you check if a file is empty using jcl?

809


What is jcl in mainframe?

685