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

How I sort the records in a file and copy the first 10
records to another file

Answer Posted / kk

hi,

Using dfsort

//step10 exec pgm=sort
//sirtin dd dsn=userid.qulifier.psname,disp=shr
//sortout dd dsn=userid.qulifier.psname,disp=shr

sort fields=(starting position,length,cha,asc/dsc)
stopaft=10

now u get result sortout ps.

Is This Answer Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which utility is used to sort a file in jcl?

1280


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

1087


how can the same proc be re-used and called by many jobs?

1562


what is SOC4 error?

1273


a dd statement has 2 types of parameters. Name them?

1181


which utility is used a dummy utility?

1524


What do you understand by jcl?

1115


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

1131


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

2187


In sms datasets, what is the function of the dd avgrec keyword?

1159


What is timing concept in mainframe?

2268


What is concatenating?

1142


How do you access an uncatalogued dataset in a jcl?

1273


What is multithreading in jcl?

1531


What is the function of the steplib dd statement?

1256