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

i want to store 20 digits . h will u do it in cobol ?

4 Answers   TCS,


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


What is the use of intialize verb?

0 Answers  


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  






can we use COPY statement in w-s section? how?

3 Answers  


How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


what are the diferences b/w sub-script and index?

4 Answers  


What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....

3 Answers   IBM,


How many types of sorts are there in cobol?

5 Answers   Cap Gemini,


waht is inspect verb? where it can be in real time?

1 Answers   Patni,


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


Categories