How are datasets concatenated?

Answers were Sorted based on User's Feedback



How are datasets concatenated?..

Answer / guest

Datasets are concatenated by writing a normal DD statement
for the first dataset and then adding a DD statement without
a DDNAME for each dataset to be concatenated in the order
they are to be read. The following is an example of three
datasets concatenated:

//YEARDAT DD DSN=JAN.DATA,DISP=SHR

// DD DSN=FEB.DATA,DISP=SHR

// DD DSN=MAR.DATA,DISP=SHR

Is This Answer Correct ?    8 Yes 2 No

How are datasets concatenated?..

Answer / satyasivaji.ch

Datasets to be concatenated are to be included on the dd
statements in the following order,bigger size first and
lower size as soo on,and datasets to be of same type(means
ps to ps or pds to pds).Must be on same device like we can't
concatenate the datasets which resides on tape with disk,n
same size.etc are the rules to be followed wen we
concatenate the data sets

Is This Answer Correct ?    7 Yes 2 No

How are datasets concatenated?..

Answer / chandru3

Datasets are concatenated by writing a normal DD statement for the first dataset and then adding a DD statement without a DDNAME for each dataset to be concatenated in the order they are to be read.

Example:
//STEP1 EXEC PGM=PGM1
//DD1 DD DSN=TSTA.CHAN.PS1,DISP=SHR
// DD DSN= TSTA.CHAN.PS2,DISP=SHR
// DD DSN= TSTA.CHAN.PS3,DISP=SHR

https://youtu.be/VE6cTuFpsXc
https://youtu.be/bExB_Tjp9A4
https://youtu.be/_O6gPk6jjLE

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

what happens when time=0 is given in jcl code. what happens when blksize=0 is given in jcl code. what is symbolic and overriding parameters and a example program.

6 Answers   HCL,


once we submitted the job to the operating system, how can we cancel the job before execution?

2 Answers  


how can u understand ps and pds from their names ?

1 Answers   TCS,


How to get the last but one duplicate record of the file using Sort?

2 Answers   Fidelity,


How much space OS allocates when you create a PS or PDS?

4 Answers  






List the various advantages of using jcl language?

0 Answers  


We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc and not the remaining steps. How can we do it?

5 Answers   IBM, JPMorgan Chase,


I have a job which is a long-running one. Processes millions of records. Due to some run-time problem (not a problem due to the job/data) the job abends.What needs to be done to make the job complete successfully.

4 Answers   TCS,


if we give two job cards in a single what happens

3 Answers   IBM,


Is automatic restart possible in jcl? If yes, how?

0 Answers  


hi,i have joined in mainframe course recently. ihave a doubt ragarding restart parameter.what is d use of it. and what is d syntax for it. any one give me d answer pls.

3 Answers  


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


Categories