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

01 ws-array
05 ws-table1 occurs 10 times.
05 ws-table2 occures 10 times.
01 i pic 9(2).
01 j pic 9(2).
procedure division.
perform varing i from 1 by 1 until i>10
perform varing j from 1 by 1 until i>10
accept ws-table1(i,J)
accept ws-table2(i,J)
end-perform
end-perform.
perform varing i from 1 by 1 until i>10
display ws-table1(i,J)
end-perfrom.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2348


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1407


How do u write test cases?

2069


State the various causes of s0c1, s0c5 and s0c7.

1086


IF I mention stop run in CICS what happens?

2379


What are the different data types in cobol?

1447


What are the pertinent COBOL

2570


For rewrite, why is it mandatory that file needs to be opened?

1109


What is link edit in cobol?

1198


What is the difference between external and global variables in COBOL?

1466


What are all the divisions of a COBOL program?

1219


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1242


What is rmode(24)

1147


how can i see junk values in dclgen or in hostvariable of comp ?

3003


Explain how you can characterize tables in cobol?

1063