Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is it possible to code instream data in a PROC?

1249


What are the parameter we cannot use in procedure?

1053


How does the jcl specify the job to os?

1093


what is the resolution for sb37 error

8940


what is DSN in JCL and what are the parameters to declare the DSN?

1142


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1099


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

1566


What is the format of comment statement?

1118


What is NOTCAT ?

1271


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?

1053


What is the motivation behind coding class parameter in job statement?

1127


Explain the function of dd disp parameter?

1046


Explain the function of //cntl statement?

1100


What is the function of dd name parameter with a 2 part structure; audit.report?

1166


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

1389