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
what is the use of outrecord?
how do you reference the fixed unblock file formats from cobol programs
) How do u handle errors in BMS macro
How do get the result of your program directly on your pc?
How can you get the ksds file records into your cobol program?
What is inspect in cobol ?
What are the different rules of SORT operation?
What is the compute verb? How is it used?
What is the utilization of copybook in cobol?
Which is not true about evaluate statement
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between goback, stop run and exit program in cobol?
Which Search verb is equivalent to PERFORM…VARYING?
What is the difference between Call and a Link?