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 |
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file
i have step1,step2,step3 from where can i start coding cond parameter ?
How do you submit JCL via a Cobol program?
What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
What is the use of the utility DFSRRC00 in the JCL?
In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides
There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.
what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?
I have a job which is a long-running one. Processes millions of records. Due to some run-time problem (not a problem due to the job/data) the job abends.What needs to be done to make the job complete successfully.
How to execute step2,step1, step3 if step1,2,3 are in order
how you can direct the data to spool using SYSOUT option?