How are datasets concatenated?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include temporary file used for sorting in assign statement?
Why include statement is used in a jcl?
What is a Generation Data Group (GDG)?
what is “Cond= even” and “Cond=only”?
What is the difference between static call & Dynamic call ?
what is the meaning of 'sysin dd dummy'
What are three major types of JCL statements? What are their functions?
wht is the d/f between positional parameter n keyword parameter ?
1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent
What is NOTCAT 2
Explain about LMGET�read a logical record from a data set