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 / haleema

Keep first 10 sorted output records.
SUBSET FROM(IN1) TO(OUT1) OUTPUT KEEP FIRST(10)USING(CTL1)
//CTL1CNTL DD *
SORT FIELDS=(11,5,CH,A)
/*
Do this using ICETOOL job.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of addrspc parameter in the exec statement?

1015


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

10012


What is the use of symbol // in jcl?

1392


Explain the function of dd disp parameter?

1047


Can I send output of job to my remote device careerride123?

1081


Must tape dataset definitions include vol=ser specifications?

1649


how do you code a null statement?

1275


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2383


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

1058


What is the function of //jcllib statement?

1266


write a jcl to execute a job by 7:00 am on jan 20,1986?

1066


In job processing, what happens in conversion stage?

1146


How does jcl act on a cobol code?

1104


What are the parameters that are used in creating a gdg?

1149


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1235