How are datasets concatenated?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is use of disp parameter in dd statement?

650


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

800


Describe the various parameters utilized in the creation of a gdg?

671


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

642


Matching Logic in Jcl not in cobol.Could any one please answer this question

3665






Name what parameter directs the output of the job log dataset?

551


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1955


what is the purpose of coding class parameter in job statement?

708


Is it possible to define dd statements as you want?

639


Can I share my data with other jobs? How?

663


How can the attributes of one sms dataset be copied to another dataset?

844


Explain the purpose of the dd keylen parameter?

661


Explain how can the attributes of one sms dataset be copied to another dataset?

694


in ways data can be passed to a COBOL program from JCL?

657


what is SOC4 error?

728