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 / sivakumar sekharannair

Kavya's answer is correct.
i used the following control card
//SYSIN DD *
SORT FIELDS=(1,3,CH,A),
STOPAFT=8

Input file contained the following records
IMSDEVELOPER CSAA
IMSPRODSUPPORTXEROX
IMSTESTER EMDAC
IMSDEVELOPER CSAA
CICPRODSUPPORTXEROX
IMSTESTER EMDAC

The output i got was

CICPRODSUPPORTXEROX
DB2PRODSUPPORTEMDAC
IMSDEVELOPER XEROX
IMSDEVELOPER CSAA
IMSDEVELOPER CSAA
IMSPRODSUPPORTXEROX
IMSTESTER EMDAC
IMSTESTER EMDAC

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when does a dataset go uncataloged?

1245


Which statement is used to identify the private libraries in job?

1126


how to run batch program without jcl?

11325


What is the difference between the positional and keyword parameters? Give examples.

1186


what is “Cond= even” and “Cond=only”?

1240


Why include statement is used in a jcl?

1119


how JCL works?

1207


What is the difference between run mode and addressing mode?

1155


Explain how can a stopped job be started again?

1077


How does jcl act on a cobol code?

1102


how you can access an uncataloged dataset in a JCL?

1073


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1318


How jcl is used for testing batch programs?

1216


What is the purpose of dd * statement in jcl?

1221


Where can program checkpoints be stored for use in a restart?

1362