how GDGs are concatinated?

Answer Posted / nygrande

If we use the base of the GDG only, all generations will be
concatenated.

If we want to use specific GDG generations, we can code as:

//FILEA DD DSN=NAME.OF.FILE(-5),DISP=SHR
// DD DSN=NAME.OF.FILE(-2),DISP=SHR
// DD DSN=NAME.OF.FILE(-1),DISP=SHR
// DD DSN=NAME.OF.FILE(0),DISP=SHR

or use the GDG complete DSN, as G0000V00. For example:

//FILEA DD DSN=NAME.OF.FILE.G0001V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0003V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0004V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0005V00,DISP=SHR

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a disposition of (new,catlg,keep) for a dsn mean?

602


What parameter directs the output of the job log dataset?

761


Can we use DISP=SHR in output file in JCL

946


what is the use of IEBGENER utility?

650


Brief description of inline procedure of jcl.

677






What is the function of //jcllib statement?

795


What is the function of the dd mgmtclas keyword in sms datasets?

730


What is the purpose of dd * statement in jcl?

793


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1659


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

726


Is there any command to check wether the ps file is in sorted order?

2423


what is a jcl?

683


how to do automated restart when a job abends?

839


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2259


Is condition checking possible in jcl?

710