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
Does jcl support automatic restart?
what is “Cond= even” and “Cond=only”?
Is there any command to check wether the ps file is in sorted order?
In sms datasets, what is the function of the dd avgrec keyword?
What does a disposition of (new,catlg,keep) for a dsn mean?
What is the function of the steplib dd statement?
Which dd parameters are required?
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?
How to submit a jcl from cics?
Can we call instream to catalog and catalog to instream?
How can the submitting users racf authority be overridden in a job stream?
Describe the various parameters utilized in the creation of a gdg?
Explain the function of dd disp parameter?
Can I send output of job to my remote device careerride123?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375