When search all is used in cobol program without sorted
input data?

Answers were Sorted based on User's Feedback



When search all is used in cobol program without sorted input data?..

Answer / hemant

Answer#3 is correct.
If data is not sorted, Program Compilation wont show any
error message. But, program will give unpredictable result.

Is This Answer Correct ?    16 Yes 0 No

When search all is used in cobol program without sorted input data?..

Answer / sainath

No, for search all command ,data should be in sorted order

Is This Answer Correct ?    19 Yes 6 No

When search all is used in cobol program without sorted input data?..

Answer / sivakumar sekharannair

Search all is a binary search and is searched with the help
of key. so the table should be necessarily sorted

Is This Answer Correct ?    14 Yes 5 No

When search all is used in cobol program without sorted input data?..

Answer / rookie

I think answer#2 is correct.
But i think the main intention of the question was what if
we dont sort the input data will the Search all work or not
work?

So if this is what intended by the question,than i think
that definately Search all will work but it will give
unpredictable results.

Correct me if i am wrong, in this scenario.

Is This Answer Correct ?    9 Yes 3 No

When search all is used in cobol program without sorted input data?..

Answer / suputhru

I agree with Rookie.

to use Search all table should be necessarily sorted.

If data is not sorted, Program Compilation wont show any
error message. But, program will give unpredictable result.

Is This Answer Correct ?    2 Yes 0 No

When search all is used in cobol program without sorted input data?..

Answer / prasad

Yes.It Wount shoe any compilation probelms.It will sort but
gives unpredictable result.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the difference between a subscript and an index in a table definition?

3 Answers   TCS,


i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..

5 Answers   IBM,


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...

2 Answers   ITC Indian Tobacco Company, PNP, TCS,


How do you do in-line PERFORM?

4 Answers   Accenture,


What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,






what are decleratives in cobol?

0 Answers   GGG, Satyam,


What is CALL statement in COBOL?

4 Answers  


77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?

9 Answers   TCS,


If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.

2 Answers  


Explain about different table spaces.

0 Answers  


What will happen if we generate GDG +2 version instead of +1 version?

2 Answers   T systems,


01 b pic +9(4) How many bytes it will take for storage???

2 Answers  


Categories