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 |
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
Explain the jcl exec statement?
how to resolve sb37,sd37 se37 abends
Why we will create load module in PDS only, Why nt in PS?
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
Explain the function of the steplib dd statement?
What is COND=EVEN ?
what are the ways of passing data to a cobol program from jcl?
wht r different types of sorts ?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What is the purpose of the PARM keyword in the EXEC statement?
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?