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

HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?

1 Answers   IBM,


There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?

9 Answers   Infosys,


can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch

1 Answers   IBM,


What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?

2 Answers  


how to split a file

4 Answers   IBM,






what is the control cards?

3 Answers  


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

0 Answers  


Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one of those 5 dataset (say 3rd dataset)?

5 Answers   Cognizant,


A dd statement consists of 4 fields. Name them?

0 Answers  


What is 'S0C7' abend?

9 Answers  


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

0 Answers   IBM,


How to see the COMP3 value(packd decimal)

2 Answers   iGate,


Categories