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 / 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 |
Post New Answer View All Answers
What is jcl in mainframe?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
How dummy is used in jcl?
What is the function of the steplib dd statement?
How can values be passed from the job stream to an executable program?
what is DSN parameter and DISP parameter is used for?
write a jcl to execute a job by 7:00 am on jan 20,1986?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Describe the various parameters utilized in the creation of a gdg?
Explain how can an in-stream dataset be terminated?
What are s0c1, s0c4, s0c5, s0c7 and socb?
is there any way to execute more than one proc in the same exec statement at the same time..?
What are the parameter we cannot use in procedure?
how can the same proc be re-used and called by many jobs?