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
what is DD statement is used in JCL?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
For what purpose steplib and joblib are used ?
How to run cobol program using jcl?
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is the JCL statement consists of?
what is JCL?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What dd statement is used to supply the name of a dataset?
Name what parameter directs the output of the job log dataset?
Explain the function of //cntl statement?
Explain the function of job statement in jcl?
a dd statement has 2 types of parameters. Name them?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
what are the statements that are not valid to be included in an include statement?