Can I concatenate various datasets whose organization are
different from each other. Lets say I want to cancatenate a
PDS file, a PS file, a GDG file etc. Can You do that ??
If yes, how ? is there any separate Utility to do so ???
Answers were Sorted based on User's Feedback
Answer / ayan
Test this code
//MYJOB1 JOB
(,L3),'MRJTEST',MSGCLASS=X,NOTIFY=&SYSUID,CLASS=B
//*
//STEP01 EXEC
PGM=SORT
//SYSOUT DD
SYSOUT=*
//*
//* *** INPUT PRINT FILE
***
//SORTIN DD DSN=&SYSUID..TESTGDG
(0),DISP=SHR
// DD
DSN=&SYSUID..EMPYT,DISP=SHR
// DD DSN=&SYSUID..TESTPDS
(TEST1),DISP=SHR
//*
//* *** OUTPUT EXTRACT FILE
***
//SORTOUT DD DSN=&SYSUID..TESTGDG
(+1),
// DISP=
(NEW,CATLG,KEEP),
// UNIT=SYSDA,SPACE=(CYL,
(10,5)),
// DCB=
(DSORG=PS,RECFM=FB,LRECL=80)
//*
//SYSIN DD
*
SORT
FIELDS=COPY
/*
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / premalatha.m
Converting to disk file in the sense, we have to copy that
GDG file to a disk file using the sort utility which
specify "sORT FIELDS = COPY". My email-id is
prem_dev86@rediffmail.com.
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / premalatha.m
We can convert the GDG file to a disk file and can use
append "A" for concatenation. Try this out!!! Please let me
know if it works fine by sending an e-mai...
Is This Answer Correct ? | 0 Yes | 4 No |
How to point my proc to production dataset always though i keep jcllib order=development.dataset? Is it possible?
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
what is use of disp parameter in dd statement?
What is NOTCAT 2
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
If the proc stepname is excluded while overriding the COND, TIME, REGION and PARM parameters while calling the proc, will the override only apply to the first step in the proc or all the steps for all the above parameters?
I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....
write a jcl to execute a job by 7:00 am on jan 20,1986?
What is the function of //cntl statement?
If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?