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
Is it possible to code instream data in a PROC?
What are the parameter we cannot use in procedure?
How does the jcl specify the job to os?
what is the resolution for sb37 error
what is DSN in JCL and what are the parameters to declare the DSN?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What statement can be used to send data to another mvs jes3 node?
What is the format of comment statement?
What is NOTCAT ?
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?
What is the motivation behind coding class parameter in job statement?
Explain the function of dd disp parameter?
Explain the function of //cntl statement?
What is the function of dd name parameter with a 2 part structure; audit.report?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?