why we are using set in searchall?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1764


Difference between array and sub-script ?

1157


how do you reference the variable unblock file formats from cobol programs

743


i want a program using by if, evaluate , string, unstring, perform, occurs?

4044


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1868






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

700


What is a SSRANGE and NOSSRANGE?

818


How do you reference the fixed block file formats from cobol programs

699


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10573


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

703


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1838


how do you reference the printer file formats from cobol programs

652


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

740


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


What is the difference between Global and External Variables?

659