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

I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1268


How to pass the parameter in parm using linkage section ? (syntax)?

1186


What is concatenating?

1142


How would you understand error(execution phase)?

1323


Explain the function of //cntl statement?

1233


which utility is used to run a cobol-db2 program?

1467


what is DSN parameter and DISP parameter is used for?

1214


What are the 2 types of parameters in dd statement?

1211


Why include statement is used in a jcl?

1240


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

1192


how to run batch program without jcl?

11698


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

1349


What is the purpose of dd?

1298


which parameter is used to check the syntax of a jcl without executing it?

1427


How do you create a temporary dataset?

1246