Answer Posted / 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 |
Post New Answer View All Answers
how would you create a temporary dataset? And where will you use them?
what operation is performed by job statement?
Is it possible to left uncode disp? If yes, how?
Explain how can an in-stream dataset be terminated?
what is the purpose of coding notify parameter in job statement?
how you can direct the data to spool using SYSOUT option?
Explain the hierarchy levels in jcl?
What is one line to pass PARM from JCL to COBOL?
List the different components of jcl statement?
How would you understand error(execution phase)?
Is condition checking possible in jcl?
Describe the various parameters utilized in the creation of a gdg?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain about LMQUERY�give a dialog information about a data set
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?