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

How to point my proc to production dataset always though i keep jcllib order=development.dataset? Is it possible?

3 Answers  


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

2 Answers  


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

0 Answers   IBM,


what is use of disp parameter in dd statement?

0 Answers   IBM,


What is NOTCAT 2

2 Answers   IBM,






What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?

12 Answers   Convergys,


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?

2 Answers  


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.....

3 Answers   RBS,


write a jcl to execute a job by 7:00 am on jan 20,1986?

0 Answers   IBM,


What is the function of //cntl statement?

0 Answers  


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?

3 Answers  


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?

4 Answers  


Categories