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 |
What is the syntax of JCL statement?
Which is the most widely used batch performance monitor for DB2?
When cursor is not closed what is the error?
wht happens if blksize = 0 and lrec = 0 ?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
How to execute a set of JCL statements from a COBOL program ?
what is meant by jobtrac?
what is inrec fields and outrec fields in sorting
In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
How to print the Output to SPOOL using MSGCLASS and SYSOUT ?
1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?