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

Answers were Sorted based on User's Feedback



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

Answer / kavya

As he told above we need to specify the sort-file in sd
entry.
But syntax is as follows,

SORT SORT-FILE ON ASCENDING/DESCENDING KEY
USING INPUT-FILE
GIVING OUTPUT-FILE.

We have to specifies the key to sort.
INPUT-FILE is the file to sorted.The sorted OUTPUT is sent
to the OUTPUT-FILE.

Is This Answer Correct ?    34 Yes 3 No

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

Answer / guest

second ans is correct

Is This Answer Correct ?    15 Yes 3 No

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

Answer / ram

THE ABOVE ONE IS CORRECT

Is This Answer Correct ?    7 Yes 1 No

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

Answer / 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

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

Answer / subhashini

we can sort a cobol program define SD SORT-FILE in
FILE SECTION
THE SYNTAX IS
SORT SORT-FILE IN ASCENDING/DESCENDING KEY USING
INPUT-FILE GIVING OUTPUT-FILE.

Is This Answer Correct ?    8 Yes 5 No

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

Answer / 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

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

Answer / bhaskar reddy

This is the exam for the sort command:

SORT SORTFILE ON ASCENDING/DESCENDING KEY USING FILE1,FILE2
GIVING FILE3.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More COBOL Interview Questions

What are the differences bitween cobol and cobol-2?

1 Answers   Wipro,


what are the limitations of Inline Perform?

3 Answers   Zensar,


What is the difference between comp and comp-3?

0 Answers  


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

0 Answers  


What are the rules of the move verb?

0 Answers  






Which mode is used to operate the sequential file?

0 Answers  


how can u pass the values into db2 values from cobol ?

3 Answers   CTS,


when COMP-3 is preferrable?

3 Answers   Patni,


plz any one tell clearly the justify right clause?

1 Answers  


How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?

4 Answers   CSC, TCS,


Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?

3 Answers  


how to create temporary data set in jcl? what is the use?

3 Answers   Cap Gemini, Temenos,


Categories