What are the different rules for performing sort operation?



What are the different rules for performing sort operation?..

Answer / Deep Ranjan Tiwari

"The rules for sorting data in COBOL include:
1. Data must be numeric or alphabetic.
2. If the data is numeric, it can be sorted in either ascending or descending order. If it's alphabetic, it can only be sorted in ascending order.
3. Each record to be sorted must contain the same fields in the same order."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

wht r the advantages of 77 level number ?

8 Answers   TCS,


OCCURS clause is used in the DATA DIVISION on data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49

13 Answers   TCS,


What is the problem of ordered sequential files access?

1 Answers  


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


what happens if we dont close cursor in db2-cobol pgm?

6 Answers  


what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?

2 Answers   BirlaSoft,


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

2 Answers   IBM, Wipro,


If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....

1 Answers   HCL,


How do you reference the following file formats from cobol programs?

1 Answers  


without performing any operations on a file how can i know whether it contains data or not

2 Answers  


What is the difference between perform … with test after and perform … with test before?

1 Answers  


how do you reference the variable unblock file formats from cobol programs

1 Answers  


Categories