I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2.
How can I use GDG to use it as input file at step2.
Answers were Sorted based on User's Feedback
Answer / satya
//step1 dd dsn=GDG.smaplegdg.base(+1),Disp=
(new,catlg,delete)
When refering it in next step
//step2 dd dsn=GDG.smaplegdg.base(+1),Disp=Shr
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / g.ranjith kumar reddy
//step2 dd dsn=GDG.smaplegdg.base(+1),Disp=Shr
| Is This Answer Correct ? | 5 Yes | 0 No |
In the same jcl if we have to refer a GDG version which was
build in any previous step then have to mention it as (+0)
not (+1)
//STEP1 DD DSN=GDG.smaplegdg.base(+1),
Disp=(NEW,CATLG,DELETE)
//STEP2 DD DSN=GDG.smaplegdg.base(+0),DISP=SHR
| Is This Answer Correct ? | 1 Yes | 21 No |
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)
i need some shortcuts and tso commands can any on ehelp me in these ?
How do you restart a step in JCL?
What is the error/SOC code if dd names are not sysut1 and sysut2 in IEBGENER?
Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.
Name the parameters which can be used to limit the number of records written to a sysout dataset?
how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?
How can u know the current date using jcl?
Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?
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)
11 Answers HCL, IBM, L&T, TCS,
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?