Interview Questions   Tutorials   Discussions   Programs   

JCL - Explain concatenating datasets?




467
views
asked mar September 1, 2014 11:46 AM  

Explain concatenating datasets?


           

1 Answers



 
answered By Mswami   0  
Concatenating Datasets:

In JCL , we can concatenate different files by giving their name one after another. All data sets concatenated must be of the same type.

At times, you might want your program to read in sequence several input data sets as if they were one.
You can accomplish this without physically putting the data in one data set. You do this by concatenating the data sets in your JCL code. Concatenation has meaning only for sequentially processed non-VSAM data sets.

Partitioned data sets can be concatenated only with partitioned data sets.

Example:
 
//MYJOB  JOB  (W345),'KRISHNA KUMAR'
//STEP1  EXEC PGM=COBPROG
//INFILE DD  DSN=TEST.GLOB.FILE1
//       DSN=TEST.GLOB.FILE2
//       DSN=TEST.GLOB.FILE3

 In program , we will read it as an single file. concatenation of three files done by operating system.


Note:

  • Maximum of 255 sequential data sets can be concatenated together.
  • Maximum of 16 partitioned data sets can be concatenated together.
 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert