how to concatenate datasets

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


Please Help Members By Posting Answers For Below Questions

what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

771


how can you check if a file is empty using jcl?

812


Name a few IBM utility programs, and explain its function.

4432


What statement can be used to send data to another mvs jes3 node?

823


What do you understand by the term notcat 2 – gs?

751






what is JCL?

691


Define concatenating?

663


How to pass data to a program that is coded in an exec statement?

820


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

603


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

930


Can an individual step be restricted from using all the jobs allowed cpu time?

1005


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2261


how to do automated restart when a job abends?

843


Is their any set of rules for dd? Explain.

657


Describe the various parameters utilized in the creation of a gdg?

680