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 condition checking possible in jcl?
For what purpose steplib and joblib are used ?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
Explain how can return codes be tested before execution of a job step?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Explain in DD statement what is the use of DCB parameter?
what is the difference between JES3 and JES2?
Define concatenating?
How does jcl act on code(if you take a cobol program)?
What is use of restart and how to use it?
What are the parameters that are used in creating a gdg?
write a jcl to execute a job by 7:00 am on jan 20,1986?