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

Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


Explain Restart Logic in Cobol?

1 Answers   L&T, Syntel,


Difference between cobol and cobol-ii?

0 Answers  


Can printer files (having 133 characters) be of variable length?

3 Answers  






) what is the difference between AID and HANDLE AID?

0 Answers   IBM,


Give some examples of command terminators?

0 Answers  


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


What does the IS NUMERIC clause establish ?

2 Answers  


how to move the records from file to array table. give with code example

0 Answers   ADP, Syntel,


I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer

3 Answers   GreenTree, IBM,


i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.

2 Answers   Wipro,


Categories