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

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

0 Answers   IBM,


Explain the jcl exec statement?

0 Answers  


how to resolve sb37,sd37 se37 abends

3 Answers   Keane India Ltd,


Why we will create load module in PDS only, Why nt in PS?

2 Answers   TCS,


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?

1 Answers  






Explain the function of the steplib dd statement?

0 Answers  


What is COND=EVEN ?

9 Answers   IBM,


what are the ways of passing data to a cobol program from jcl?

1 Answers   IBM,


wht r different types of sorts ?

1 Answers   L&T,


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

0 Answers  


What is the purpose of the PARM keyword in the EXEC statement?

3 Answers  


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  


Categories