Answer Posted / pkb
It is possible to process more than one data set as a single data set by concatenating the DD statements.
//QSAM0080 DD DSN=SIMOTIME.DATA.FILE0001,DISP=SHR
// DD DSN=SIMOTIME.DATA.FILE0002,DISP=SHR
// DD DSN=SIMOTIME.DATA.FILE0003,DISP=SHR
The following is an example of a COBOL SELECT statement.
here the COBOL program will read QSAM0080 and the DD statements will map the three files (FILE0001, FILE0002 and FILE0003) as one file. The program's initial read will get the first record from FILE0001 and will not get an End-of-File condition until the last record of FILE0003 is processed.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Must tape dataset definitions include vol=ser specifications?
What is NOTCAT ?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain how can the submitting users racf authority be overridden in a job stream?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
How can a stopped job be started again?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What do you understand by the terms: joblib and steplib?
What is the function of //jcllib statement?
How is a type of file defined in the jcl that executes the cobol program?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
In sms datasets, what is the function of the dd mgmtclas keyword?
What are steplib and joblib? What for they are used?
How to pass the parameter in parm using linkage section ? (syntax)?
what is a jcl?