When search all is used in cobol program without sorted
input data?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / prasad
Yes.It Wount shoe any compilation probelms.It will sort but
gives unpredictable result.
Is This Answer Correct ? | 1 Yes | 0 No |
What is the difference between a subscript and an index in a table definition?
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..
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?
What is "Call by content" and "call by reference"?
what are decleratives in cobol?
What is CALL statement in COBOL?
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.?
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.
Explain about different table spaces.
What will happen if we generate GDG +2 version instead of +1 version?
01 b pic +9(4) How many bytes it will take for storage???