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 does a disposition of (MOD,DELETE,DELETE) mean ?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
how can you check if a file is empty using jcl?
Differentiate between addressing mode and run mode.
What are the rules employed while naming the steps in a job?
what sort card you will use to copy the data from one dataset to another dataset?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How to execute 2nd and 4th steps among 5 steps in jcl proc?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
which parameter is use to declare the name of dataset in dd statement?
What is the function of //cntl statement?
what is the purpose of coding class parameter in job statement?