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
How to submit jcl through a cobol program?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What parameter directs the output of the job log dataset?
what is the JCL statement consists of?
Is their any set of rules for dd? Explain.
Is automatic restart possible in jcl?
what is the use of IEBGENER utility?
How to pass the parameter in parm using linkage section ? (syntax)?
How can the attributes of one sms dataset be copied to another dataset?
Explain the function of job statement in jcl?
Explain how can a stopped job be started again?
i want to store 20 digits . how will u do it in cobol ?
Can we call instream to catalog and catalog to instream?