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
Can we call instream to catalog and catalog to instream?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
how you can direct the data to spool using SYSOUT option?
What is the function of the dd mgmtclas keyword in sms datasets?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
What are the utility programs in jcl?
How can a fb file convert to vb file using sort program?
Explain how can values be passed from the job stream to an executable program?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
Is automatic restart possible in jcl? If yes, how?
what is use of dsn parameter in dd statement?
Explain how can a jobs execution priority be modified?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
How do you submit a job for execution?
What is use of restart and how to use it?