In a COBOL program, 2 tables TABLE1 and TABLE2 are defined
that are indexed by INDEX1 and INDEX2 respectively. Can we
use INDEX1 with TABLE2 and INDEX2 with TABLE1?

Answer Posted / moideen

Because the index is defined to the corresponding table,
INDEX1 cannot work with TABLE2 and vice versa.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of outrecord?

1774


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

425


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?

2100


what are decleratives in cobol?

1831


what is search and searchall?what is the diffrence between them?give an best example?

5563






i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1000


Explain the configuration section of a cobol program with examples of syntax.

661


What is rmode(any) ?

686


) How do u handle errors in BMS macro?

1429


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2661


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785


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

744


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

2221


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5695