I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array?

Answer Posted / dipali jaju

give subscript as 11 ,like if we have temp as table name,
then
display "temperature : " temp(11)

but if table is two dimentional then
__________________________
| 1 | 2 |
|_________ _|____________|
| | | | |
|0-25 |26-50|51-75|76-100|
|_ele_|_ele |_ele |_ele |

so to fetch 11 the record we have to write temp(1,11)

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of SDLC u followed? Why?

1520


What is cobol?

748


How do get the result of your program directly on your pc?

1885


What are the different rules for performing sort operation?

763


Can we redefine the field of x(200) to less than 200?

820






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

1960


how do you reference the esds vsam file formats from cobol programs

634


What is amode(24)?

684


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?

2099


Name the sections present in data division.

701


What is the Purpose of Pointer in the string?

643


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

1908


What is rmode(any) ?

686


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2059


How can you get the ksds file records into your cobol program?

644