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 beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......

3 Answers   BirlaSoft,


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


What is SET TO TRUE all about, anyway?

5 Answers  


What are the divisions in a cobol program?

1 Answers  


What are the different rules to perform a Search?

0 Answers  






I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer

3 Answers   GreenTree, IBM,


How does IDMS insure data integrity?

1 Answers  


describe 805 error

6 Answers   DELL,


which one is better among static call and dynamic call?

3 Answers  


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


How to execute a set of JCL statements from a COBOL program?

2 Answers   Patni, Syntel,


Why occurs can not be used in 01 level ?

2 Answers   TCS,


Categories