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

What is rmode(any) ?

1183


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1102


) How do u handle errors in BMS macro

1958


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2328


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1179


Can you please let me know the centre name of INS certification in Kolkata.

2181


what happens if parmparameter passes zero bytes to the program

2082


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1222


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3172


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2077


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1602


What is the difference between structured cobol programming and object alternativelyiented cobol?

1186


What is the usage of comp fields in cobol?

1130


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

1131


How are the next sentence and continue different from each other?

1225