What are the two search techniques ?
Answers were Sorted based on User's Feedback
Answer / vish
If you talk in COBOL, then yes we have type os searches -
sequential search and Binary search.
Syntax:
SEARCH - Sequential
SEARCH ALL - Binary
It is important to note that for the Binary search the
input file (or table) must be sorted order else the result
of the SEARCH ALL will be wrong.
| Is This Answer Correct ? | 13 Yes | 0 No |
how to convert the recors form vsam file to db2 table tru file aid
When is a scope terminator mandatory?
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
subscript and index r not coded in u r application program what will happen?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size
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?
What is amode(24)?
Can we move X(7) to S9(7) COMP?
What is the difference between PIC 9.99 and PIC9v99?
can I copy book which contain db2 statment in procedure divion?