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 do you define a table/array in COBOL?

Answer Posted / anil prajapati

Table/array can be defined in cobol by using occurs with
times clause

like
working-=storage section.
01 tab1 value 'anilkumarprajapati'.
03 tab2 pic x(3) occurs 6 times indexed by i.
procedure division.

display tab2(i).
stop run.

output will be dsiplayed like

ani
lku
....

Is This Answer Correct ?    23 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6452


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

2403


What is the difference between PIC 9.99 and 9v99 in COBOL?

1244


Explain about different table spaces.

1047


How do we get current date from system with century in COBOL?

1320


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

2933


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2221


What is a report item?

1093


how to refer the data field?

2208


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1230


what is amode(24), amode(31), rmode(24) and rmode(any)?

1092


what is the difference between COBOL2 AND COBOL390?

2986


What type of SDLC u followed? Why?

1957


How do define dynamic array in cobol.

1082


What are the cobol coding sheets?

1173