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?
Answer Posted / ram
SORT FIELDS=(2,5,CH,D)
DUPKEYS MAX=(13,1,ZD)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What dd statement is used to supply the name of a dataset?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Explain the purpose of the dd keylen parameter?
What parameter directs the output of the job log dataset?
what are the various stages of job processing?
what are JCLLIB and STEPLIB in JCL?
how to do automated restart when a job abends?
Explain how can the attributes of one sms dataset be copied to another dataset?
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
Explain about LMQUERY�give a dialog information about a data set
what operation is performed by job statement?
which utility is used to run a cobol-db2 program?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
what is use of disp parameter in dd statement?