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

Explain the function of a dd statement?

865


Does jcl support automatic restart?

966


How to do automated restart when a job abend?

1010


What is the purpose of dd?

953


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1964


How can unused space allocation be returned to the system when a dataset is closed?

1091


if the submitter of a job wants to inform another user about the job completion, how can it be done?

983


how to do automated restart when a job abends?

1089


what is use of dcb parameter in dd statement?

1003


What is the difference between the positional and keyword parameters? Give examples.

944


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

2179


How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?

8067


How would you understand error(execution phase)?

842


Mention the types of job control statements?

907


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

867