how GDGs are concatinated?
Answers were Sorted based on User's Feedback
Answer / nygrande
If we use the base of the GDG only, all generations will be
concatenated.
If we want to use specific GDG generations, we can code as:
//FILEA DD DSN=NAME.OF.FILE(-5),DISP=SHR
// DD DSN=NAME.OF.FILE(-2),DISP=SHR
// DD DSN=NAME.OF.FILE(-1),DISP=SHR
// DD DSN=NAME.OF.FILE(0),DISP=SHR
or use the GDG complete DSN, as G0000V00. For example:
//FILEA DD DSN=NAME.OF.FILE.G0001V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0003V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0004V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0005V00,DISP=SHR
Is This Answer Correct ? | 2 Yes | 0 No |
There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?
1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program anyone please answer me for above questions. it's very urgent
What are the 2 types of parameters in dd statement?
how can i code cond parameter in procedures ? i have a jclk calling a proc which has 10 steps i want to execute from step 5 to step 10 where can i code restrat parameter or cond parameter for ths
what is DD statement is used in JCL?
hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)
how are instream data terminated?
What dd statement is used to supply the name of a dataset?
Can we change a FB file to VB file in JCL? Please help
In DCB, what is LRECL,BLKSIZE,DSORG
//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 /*
Is their any set of rules for dd? Explain.