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

oza017.myorg.emp has 100 records ,oza018.myorg.staff has
200 records but 50 are the common records in both files
copy all the common records into oza017.myorg.xyz dataset

Answer Posted / challa srinivas

//SORT1 EXEC PGM=SORT
//SORTJNF1 DD DSN = oza018.myorg.staff
DSN = oza017.myorg.emp
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DSN = oza017.myorg.xyz
JOINKEYS FILES=F1,
JOINKEYS FILES=F2,
REFORMAT FIELDS
SORT FIELDS=COPY

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the compile process of cobol program expalin with code

2592


Is it possible to left uncode disp? If yes, how?

1194


what is use of disp parameter in dd statement?

1105


Is it possible to left uncode disp?

1212


What is the difference between run mode and addressing mode?

1261


List the different jcl statements that are not permitted in the procedures?

1087


i want to store 20 digits . how will u do it in cobol ?

1424


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1159


What dd statement is used to supply the name of a dataset?

1391


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2682


How to submit a jcl from cics?

1153


which utility is used to sort a file in jcl?

1229


Explain the hierarchy levels in jcl?

1686


Explain about LMQUERY�give a dialog information about a data set

1457


How does jcl act on a cobol code?

1194