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 |
The maximum number of steps in a job?
Can you code instream data in a PROC ?
We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc and not the remaining steps. How can we do it?
5 Answers IBM, JPMorgan Chase,
how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?
what happens in execution stage in job processing?
I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?
In how ways you can pass the data from Jcl to cobol ?
HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?
what is the purpose of coding class parameter in job statement?
mainframe questions like basic&depth
How does jcl act on a cobol code?
what are the technical terms for // /* in jcl