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 |
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
What are the different rules for performing sort operation?
What are the differences bitween cobol and cobol-2?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
I have files that contains both duplicates files(occur more than twice) and non-duplicate files.The file is already sorted by a key.I want to determine those records that are duplicate and will be move to a duplicate file and non- duplicate files to be move to a valid file.thank you.help please
How to open and see copy book ?
IF I mention stop run in CICS what happens?
S9(5)V9(2) occupies how many bytes memory ?