How do you find which GDG is using which dataset?

Answers were Sorted based on User's Feedback



How do you find which GDG is using which dataset?..

Answer / karthik .k

GDG datasetname(-1)-previous version
(0)-current version
(+1)-next version

Is This Answer Correct ?    2 Yes 0 No

How do you find which GDG is using which dataset?..

Answer / balu

gdg data set(0) we can know which data set gdg is using

Is This Answer Correct ?    0 Yes 0 No

How do you find which GDG is using which dataset?..

Answer / stu

The question is confusing. A GDG (Generation Data Group)
consists of a base (no data, but defines the name, how many
generations of data files will be kept, etc.), and the
generations of data files.

The data files will all have the same file name except for
the last name node. Here are 3 generations of a GDG with
their actual file names.

xxx.xxxxx.xxxx.G000V01 alias=xxx.xxxxx.xxxx(-2)
xxx.xxxxx.xxxx.G000V02 alias=xxx.xxxxx.xxxx(-1)
xxx.xxxxx.xxxx.G000V03 alias=xxx.xxxxx.xxxx(0)

If another generation is created, G000V00, it becomes (0),
G000V03 becomes (-1), and so forth.

If the jcl cites xxx.xxxxx.xxxx by itself, it concatenates
all the existing generations in earliest to latest order.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

What is GDG and what is the maximum limit of versions that can be created?

9 Answers   Convergys,


Hi, I have a requirement File A : I have 6 records out of which 4 are same. File B: I have 8 records out of 6 records are same. The 4 records in FILEA and 6 records in FILE B are same. If we substract we will get two records, I need these two records in output file This is because to remove the duplicates from the database. Through easytrieve we can compare but for that there should not duplicates, but in my file I have duplicates. Thanks in advance!!

2 Answers  


Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get execute??

3 Answers   HSBC,


Can you give the sort card to arrange the specific column in the version of GDG.

1 Answers  


when does a dataset go uncataloged?

0 Answers   IBM,






i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?

10 Answers   IBM,


How is a type of file defined in the jcl that executes the cobol program?

0 Answers  


Explain how can a jobs execution priority be modified?

0 Answers  


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

0 Answers   HF, iNautix,


In SPACE,what is directory,RLSE

6 Answers   TCS,


What are the rules employed while naming the steps in a job?

0 Answers  


What is a COND parameter in JCL?

10 Answers   TCS,


Categories