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

how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


explain sorting techniques in cobol program?

0 Answers  


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


What is a scope terminator? Give examples.

2 Answers  


what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?

5 Answers   Cognizant,


HOw can I get the negative sign while deduct high value from low value

0 Answers  


how to convert the recors form vsam file to db2 table tru file aid

0 Answers   TCS,


How include time & date in the report generation in cobol programing?

2 Answers  


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


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,


Categories