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 happens when we move a comp-3 field to an edited (say z (9). Zz-)?

0 Answers  


describe 805 error

6 Answers   DELL,


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


for an INITIALIZE and what keyword allows for an override of the default.

2 Answers  


The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND

10 Answers   Huawei, IBM, TCS,






study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level

4 Answers   TCS,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


What is ASKTIME, SUSPEND

1 Answers   IBM,


how do you reference the esds vsam file formats from cobol programs

0 Answers  


What is the mode in which you will OPEN a file for writing?

4 Answers  


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

0 Answers  


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?

6 Answers   Xansa,


Categories