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



Can I concatenate various datasets whose organization are different from each other. Lets say I wa..

Answer / kavitha

Nope. We Cant.

Is This Answer Correct ?    8 Yes 0 No

Can I concatenate various datasets whose organization are different from each other. Lets say I wa..

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

Can I concatenate various datasets whose organization are different from each other. Lets say I wa..

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

Can I concatenate various datasets whose organization are different from each other. Lets say I wa..

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

Post New Answer

More JCL Interview Questions

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

0 Answers  


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

6 Answers   ITC Infotech,


i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,


How do you submit JCL via a Cobol program?

2 Answers   Cap Gemini,


What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

3 Answers   IBM,






What is the use of the utility DFSRRC00 in the JCL?

2 Answers   Convergys,


In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides

6 Answers   Satyam,


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.

1 Answers   IBM,


what is pupose and meaning of the REGION keyword and what jcl statement is it associated with?

1 Answers  


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.

4 Answers   TCS,


How to execute step2,step1, step3 if step1,2,3 are in order

8 Answers   CSC,


how you can direct the data to spool using SYSOUT option?

0 Answers  


Categories