How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.

Answer Posted / mftech

Need to define the SORT-FILE in SD in file section.

Sort SORT-FILE
Using Input-File
Giving Output-File

Can also use inout procedure and output ptocedure inplace
of input fiile and output files.

Is This Answer Correct ?    14 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3711


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

1762


How are the next sentence and continue different from each other?

756


Which division and paragraphs are mandatory for a COBOL program?

705


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

886






How do define dynamic array in cobol.

666


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1606


Give some examples of command terminators?

749


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1916


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1224


Which Search verb is equivalent to PERFORM…VARYING?

677


What is the default value(s) for an initialize and what keyword allows for an override of the default?

689


What is difference between static and dynamic call in cobol?

768


Why would you use find and get rather than to obtain?

677


What is static and dynamic call in cobol?

589