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

Must tape dataset definitions include vol=ser specifications?

1724


What is NOTCAT ?

1334


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1258


Explain how can the submitting users racf authority be overridden in a job stream?

1128


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1194


How can a stopped job be started again?

1191


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) ?

2228


What do you understand by the terms: joblib and steplib?

1177


What is the function of //jcllib statement?

1319


How is a type of file defined in the jcl that executes the cobol program?

1190


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1227


In sms datasets, what is the function of the dd mgmtclas keyword?

1385


What are steplib and joblib? What for they are used?

1229


How to pass the parameter in parm using linkage section ? (syntax)?

1137


what is a jcl?

1139