can we maintain 2 generations with different Lengths in Same
GDG ?

Answers were Sorted based on User's Feedback



can we maintain 2 generations with different Lengths in Same GDG ?..

Answer / somalaraju

i told yes,but he asked have u ever tried with this type of
generations in same GDG.
I told that we can provide different lengths while creating
the Generations even they belong to same GDG, but i never get
a chance to do that one.

Is This Answer Correct ?    19 Yes 5 No

can we maintain 2 generations with different Lengths in Same GDG ?..

Answer / vishal

Yes, we can definitely have different GDG versions with
different LRECL. e.g. in the below change the LRECL to as
per your needs and each time it will generate the GDG
version with the LRECL provided.

//DD1 DD DSN=BASEG(+1),DISP=(NEW,CATLG,CATLG)
DCB=(MODELNAME,LRECL="WHAT U WANT"

However, there is a catch. If the GDG is being updated by a
program then whatever length has been declared in the
program (of the file corresponding to DD1), the GDG version
will have that same length, irrespective of the length
declared in the JCL.

Note: I guess if the length declared in the Program is
greater than that LRECL given in the JCL then we may face
JCL errors but I am not sure of this. SomEene can check and
let everyone know.

Is This Answer Correct ?    8 Yes 0 No

can we maintain 2 generations with different Lengths in Same GDG ?..

Answer / krishna

YES
by overideing the LENGTH PARAMETER of model dataset

SYNTAX:
//DD1 DD DSN=BASEG(+2),DISP=(NEW,CATLG,CATLG)
DCB=(MODELNAME, RECLNG="WHAT U WANT"

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More JCL Interview Questions

how to create gdg with out using idcams utility

8 Answers   DSRC,


i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?

4 Answers   Infosys,


We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?

2 Answers   CTS, IBM,


Why 16 is used in calculating the DPRTY ? as, DPRTY = (num1, num2), THEN, DPRTY = 16* num1 + num2

4 Answers   IBM,


If Region=0k means What Happen?

2 Answers   IBM,






what is “Cond= even” and “Cond=only”?

0 Answers  


i want to store 20 digits . how will u do it in cobol ?

0 Answers  


How do you create a temporary dataset? Where will you use them?

2 Answers   IBM,


A. Job Abended in STEP03. Now run job again to execute STEP03, STEP04 (STEP01,STEP02 should not execute again)

3 Answers   Cap Gemini, CSC, Xchanging,


Explain the purpose of dd dummy statement?

0 Answers  


A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?

5 Answers   IBM, Wipro,


how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


Categories