why we are using set in searchall?

Answers were Sorted based on User's Feedback



why we are using set in searchall?..

Answer / nagaraj ramamoorthy

no need use the SET verb in search all (Binary Search)
because it will automatically initialise and increase the
index variable in the table.

Is This Answer Correct ?    9 Yes 0 No

why we are using set in searchall?..

Answer / mahesh

actually in search we use a set verb to set the data in
increse or decrease order but incase of searh all its a
binry search no need to use the set verb

Is This Answer Correct ?    4 Yes 1 No

why we are using set in searchall?..

Answer / krishna chaitanya

In searchALL We Dont use any Set Verb . But in Search we
will use

Is This Answer Correct ?    0 Yes 0 No

why we are using set in searchall?..

Answer / ashok

in search all(bynary search)
set is used in 2 ways
1) if u incress/decress indexed varibles
ie set ws-a upto/downto 5.
it incress/decress indexvalue 5.
2) we canot use move clause in indexed so we use set
place of move like
ie set ws-a to 5.
it simply move 5 to ws-a.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1 Answers  


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


How can you add a particular field/coloumn in copybook?

3 Answers   ADP, DELL, L&T,


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


How is sign stored in Packed Decimal fields and Zoned Decimal fields?

6 Answers   ABC, HCL, TCS,


How to display string in the reverse order using occurs clause?

4 Answers  


What are all the divisions of a COBOL program?

1 Answers  


What is the local-storage section?

1 Answers  


how do you define single dimensional array and multidimensional array in your cobol?

1 Answers  


how do you reference the printer file formats from cobol programs

1 Answers  


how would you resolve sb37 and SE37?

2 Answers   Hewitt,


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


Categories