Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how will u retreive value from a table.write it with syntex.
01 ws-table
05 ws-table1 occurs 10 times.
05 ws-table2 occurs 10 times.

the above is 2 dimensional array..how will u retrieve 1st
element of an array

Answer Posted / veenaibm

Multidimentional array is as follows:

01 TABLE-REC-1.
05 ROWS OCCURS 1 TO 10 TIMES.
10 COLUMNS OCCURS 1 TO 10 TIMES.
20 CELL PIC X(1).

Now if we want to access the value of the variable CELL,

we can use
Perform x from 1 by 1 until x>10
Perform y from 1 by 1 until y>10
cell(x,y).

In the question, it is not a 2 dimentional array.

It is 2 single dimentional array which can be accessed
independently.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how you can characterize tables in cobol?

1064


What are the different data types in cobol?

1454


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

1100


How many bytes S(8) comp field occupy and its maximum value?

2146


Are you comfortable in cobol or jcl?

1055


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2479


What are the pertinent COBOL

2573


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1085


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2557


In which area will you utilize 88 level items in cobol?

1166


What are the rules of the move verb?

1273


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

3172


Name the divisions, which are available in a cobol program?

1239


In COBOL programming, what is PERFORM? What is VARYING?

1153


What rules are to be followed while using the corresponding options?

1080