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

//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

0 Answers  


How do you submit a job for execution?

0 Answers  


What statement can be used to send data to another mvs jes3 node?

0 Answers  


What is the exact difference between PRTY and DPRTY

2 Answers   iGate,


What u mean by include statement in JCL ?

3 Answers  






Explain how can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


what is the alternative to model parameter?

0 Answers  


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

4 Answers  


if we give TIME=0 how many sec that job/step

14 Answers  


Suppose I have seven jobs to do, but I want to hold one than how can I do this?

1 Answers  


I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.

0 Answers  


What do you understand by jcl?

0 Answers  


Categories