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 do you find which GDG is using which dataset?
Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?
01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
How gdg are concatenated?
I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter
What is the purpose of include statement in a JCL?
What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
What is the error code SOC01 indicate ?
How to execute a set of JCL statements from a COBOL program ?
Explain about LMOPEN -
How can we see data in TEMPARARY DATA SET in JCL ?
I have a sequential file in which there are 50 records. Now I want to copy all the 50 records in the reverse order into a new file? The last record in the original file should be the first record in the new file. How can I do it?