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

How to submit a jcl from cics?

1105


Describe the various parameters utilized in the creation of a gdg?

1113


How jcl is used for testing batch programs?

1230


How to execute 2nd and 4th steps among 5 steps in jcl proc?

1237


Is acct parameter mandatory?

1153


What are the jcl procedures?

1066


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1205


A dd statement consists of 4 fields. Name them?

1378


What do you understand by the terms: joblib and steplib?

1119


What is the purpose of disp parameter?

1078


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

1349


List the various advantages of using jcl language?

1399


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1067


Name what parameter directs the output of the job log dataset?

1021


which utility is used to sort a file in jcl?

1180