Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a type of file defined in the jcl that executes the cobol program?

1191


What is the use of symbol // in jcl?

1486


Explain how can the submitting users racf authority be overridden in a job stream?

1128


What do you understand by the term notcat 2 – gs?

1243


What do you understand by the term job time – out and how can you overcome that?

1033


what happens in execution stage in job processing?

1145


What does a disposition of (MOD,DELETE,DELETE) mean ?

1135


which parameter is use to declare the name of dataset in dd statement?

1269


How to do automated restart when a job abend?

1393


What are the rules employed while naming the steps in a job?

1141


What are the jcl procedures?

1122


How jcl work to handle various input output file operations?

1169


Which statement is used to identify the private libraries in job?

1190


What are the utility programs in jcl?

1161


Explain the function of //cntl statement?

1173