can we maintain 2 generations with different Lengths in Same
GDG ?
Answer Posted / 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 |
Post New Answer View All Answers
Is it possible to define dd statements as you want?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
How can a jobs execution priority be modified?
How do you access an uncatalogued dataset in a jcl?
which parameter is use to declare the name of dataset in dd statement?
List the various advantages of using jcl language?
Explain how can a stopped job be started again?
What is the purpose of disp parameter?
Is automatic restart possible in jcl?
In job processing, what happens in execution stage?
Which statement is used to identify the private libraries in job?
Does jcl support automatic restart?
what sort card you will use to copy the data from one dataset to another dataset?
What is catelog procedure and how many catelog procedure to use in one job?
Explain the function of dd disp parameter?