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 / abhishek

while declaring a two dimensional array we have to use the
INDEXED BY clause

01 ws-array
05 ws-table1 occurs 10 times INDEXED BY I
10 ws-table2 occures 10 times INDEXED BY J
15 var-1 pic x(4)
15 var-2 pic x(5)

01 i pic 9(2).
01 j pic 9(2).

procedure division.
perform varing i from 1 by 1 until i>10

AFTER varing j from 1 by 1 until i>10
accept var-1(i,J)
accept var-2(i,J)

end-perform.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to explain size error.

1204


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

2476


How you can characterize tables in cobol?

1203


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9898


What is comp-1 and comp-2?

1232


example for sub strings ? and refernce modifications whit output pls

2319


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

17883


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

1251


What are various search techniques in cobol? Explain.

1073


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

1100


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.

2435


Difference between cobol and cobol-ii?

1282


How do define dynamic array in cobol.

1145


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1238


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2112