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 |
Can we write same stepname for one or more steps in on job ?
which statement is used to end the in-stream procedure in a jcl?
I HAVE A SEQUENTIAL FILE CONTAINING ONE RECORD IN WHICH I HAVE ONE FIELD AS CUSTOMER IDENTITY NUMBER FIELD WHICH IS A SIGNED FIELD. HOW TO SEQUENTIALLY INCREMENT THIS FIELD USING OVERLAY PARAMETER?.
what's the significance of freespace(0 0) and freespace(100 100)
What are the rules employed while naming the steps in a job?
how to edit a tape dataset ? asked in wipro
if we have a job consist of two steps and each step calling a proc having 10 steps each then how many steps are counted only 2 or 22(10+10+1+1)? can we have more than 255 steps in a single job?
i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.
What is a S0C4 error ?
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
How to ALTER the name of a GDG ?
What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?