explain concatinating datasets?



explain concatinating datasets?..

Answer / ravi

In JCL , we can concatenate different files by giving their
name one after another. All data sets concated must be of
the same type. For example,
1)partitioned data sets can be concatenated only with
partitioned data sets.
2)Record format should be same
3) All the files should on same device (like DASD, Tape)
4) File having largest BLKSIZE should be mentioned first

Maximum of 255 sequential data sets can be concatenated
Maximum of 16 partitioned data sets can be concatenated


Example JCL --> //MYJOB JOB (W345),'XXX'
//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.
concatination of three files done by operating system.

Is This Answer Correct ?    12 Yes 0 No

Post New Answer

More JCL Interview Questions

How can we execute only one step in a job

22 Answers   MAHINDRA, Mind Tree, Tech Mahindra,


when GDG version number get changed ? bcz always Generations only increasing.

1 Answers   Cap Gemini,


i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

2 Answers  


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

0 Answers   HP,


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

0 Answers   IBM,






I had 100 steps in jcl i want to execute first 10 steps only?

6 Answers   IBM,


Explain about ISPF/TSO Commands

0 Answers  


I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP

4 Answers   CSC,


In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?

1 Answers  


when we use sysprint and sysout statements

3 Answers  


What is QSAM error usually when it is occurs?

1 Answers  


What are SD37, SB37, SE37 abends?

4 Answers  


Categories