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


Please Help Members By Posting Answers For Below Questions

What are the cobol coding sheets?

673


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

689


What are the pertinent COBOL

2054


What are the different rules for performing sort operation?

770


Define static linking and dynamic linking.

675






How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

654


What is inspect in cobol ?

808


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

718


Can we change the password using ALTER? anyone tried and changed?

1554


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1785


Define cobol?

875


State the various causes of s0c1, s0c5 and s0c7.

667


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

719


How do you reference the fixed block file formats from cobol programs

713


How do define dynamic array in cobol.

679