how GDGs are concatinated?

Answers were Sorted based on User's Feedback



how GDGs are concatinated?..

Answer / agent-code

just give the base gdg.

Is This Answer Correct ?    7 Yes 1 No

how GDGs are concatinated?..

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

how GDGs are concatinated?..

Answer / adarsh

using repro command.

Is This Answer Correct ?    0 Yes 0 No

how GDGs are concatinated?..

Answer / jalal

255

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More JCL Interview Questions

Hi, can any one tell about " How do u eliminate the duplicates "

2 Answers   Cap Gemini,


In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides

6 Answers   Satyam,


I found in one of the jcl, gdg version being mentioned as : abc.def.ghi(-0) Can anyone tell me how referring the version as (-0) is different from referring it as (0)

2 Answers  


How can an in-stream dataset be terminated?

0 Answers  


Explain the job statement in jcl?

0 Answers  


how you can access an uncataloged dataset in a JCL?

0 Answers  


i want apply mainframe devolper with 3+ but i dont have that much of knowledge what isthe solution to get that much of knoweldge?

1 Answers  


what is inrec fields and outrec fields in sorting

3 Answers   Fidelity,


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

0 Answers  


Suppose I have five jobs to do. But I want to hold one?

0 Answers  


how to create gdg with out using idcams utility

8 Answers   DSRC,


Explain the purpose of dd * statement in jcl?

0 Answers  


Categories