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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1962


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

603


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

8668


What is the function of the dd dcb keyword?

821


how JCL works?

794






what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

651


Can we use DISP=SHR in output file in JCL

951


In job processing, what happens in execution stage?

696


What are the parameters that are used in creating a gdg?

735


When output dataset space is required, what quantity categories are used?

824


Differentiate between addressing mode and run mode.

615


What is the significance of addrspc parameter in exec statement?

726


What is the function of //cntl statement?

828


when does a dataset go uncataloged?

827


Is their any limit for data sets?

699