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

Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?

4 Answers  


Min no of member?s (PDS) in one directory block?

10 Answers  


What are the differences between JES2 & JES3 ?

4 Answers  


CAN ANYONE TELL ME WHAT IS "JOB-CARD"

4 Answers   Syntel,


What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?

2 Answers  






in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?

3 Answers   Patni,


When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 Answers  


how to compress the data set

8 Answers   Keane India Ltd,


Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?

2 Answers  


how can i code cond parameter in procedures ? i have a jclk calling a proc which has 10 steps i want to execute from step 5 to step 10 where can i code restrat parameter or cond parameter for ths

4 Answers   IBM,


Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

4 Answers   IBM,


Categories