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

i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??

Answer Posted / chinmay

//job1 job 65493,jena,class=a prty=9
//step1 exec pgm=sort
//sysprint dd sysout=*
//indd dd dsn=file1.cob, disp= shr
//outdd dd dsn=file2.cob, disp=(new,catlg,delete)
// unit=sysda,space=(cyl,4,2),rlse)
//sysin dd *
sort fields=(2,4,ch,a)
/*
//step2 exec pgm=idcams
//sysprint dd sysout=*
//sysin dd *
repro -
infile(indd)
outfile(outdd)
count(200)
/*
//

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What parameter of the job statement is used to limit the cpu time consumed by the job?

1333


What is job control language?

1148


what is the purpose of coding class parameter in job statement?

1313


Explain the function of the dd dcb keyword?

1323


What statement can be used to send data to another mvs jes3 node?

1688


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

1351


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

1339


Explain about LMFREE�free data set from its association with data ID

1678


What is timing concept in mainframe?

2266


Explain the jcl exec statement?

1202


what JCL Procedures?

1307


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

1208


What is Cataloged Procedures?

1205


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1288


Is condition checking possible in jcl? If yes, how?

1343