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 |
we define the array like this 01 array 02 veg occurs 10 times 03 days occurs 6 times 04 cost pic 9(5). but why don't we write it as 01 array 02 veg occurs 10 times 03 days occurs 6 time 04 cost pic 9(5). is there any error will occur ,what is it? and why don't 01,02,03 not contain picture clause? if we put pic in those is there any error will occur what is it will occur?
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include temporary file used for sorting in assign statement?
what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file
what are the options in file-aid to edit vsam dataset and to compare data sets.
when can a job time-out occur? How to overcome that?
i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?
HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get execute??
How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?
what is DD statement is used in JCL?
Can we call instream to catalog and catalog to instream?