How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.
Answer Posted / nagaraju
SORT SORT-FILE
ON ASCENDING/DESCENDING KEY key-value
USING input-file
GIVING output-file.
we can use input procedure and output procedure as fallow
SORT SORT-FILE
ON ASCENDING/DESCENDING KEY key-value
INPUT PROCEDURE IS --------
OUTPUT PROCEDURE IS -------.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain the configuration section of a cobol program with examples of syntax.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
In which area will you utilize 88 level items in cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Explain what you understand by passing by value.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
what is the use of outrecord?
what is the difference between COBOL2 AND COBOL390?
What are all the divisions of a COBOL program?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Explain how you can characterize tables in cobol?
How do u write test cases?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the Purpose of POINTER Phrase in STRING command in COBOL?