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 |
How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?
What is the function of //jcllib statement?
How do you submit a JCL under CICS environment ?
What is the use of DSNDB07 ?
What is the purpose of dd * statement in jcl?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
Using DELETE what type of file can you delete? a)SEQUENTIAL FILE B)INDEXED FILE C) D) Some options were there..i cant remember
can i sort packed decimal if i can tell the syntax
in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths
//step#3 exec pgm = hkbc762 what is wrong with the syntax?
diff bw vsam and normal flat file?
Can a temporary dataset be converted to permanent dataset and vice-versa in the middle of a job ?