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 array can be declare in cobol?

Answer Posted / ashish

we declare table as
01 SALES-OF-YEAR-2010 OCCURS 12 TIMES indexed by YY.
02 MONTH PIC A(10).
02 NUM-OF-UNITS PIC 9(7).
02 PRICE-OF-UNIT PIC 9(5).

and we can call table elemnts as follows

procedure division.
.......
.......
MOVE 1 TO YY.
DISPLAY MONTH(YY).

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax of sort?

915


What is input procedure?

1009


Explain the syntax of sort?

983


Explain the output procedure?

1050


What is comp?

1164


What is the actual use of fillers?

975


What is perform?

1112


why icetool be used in programmer view?

2588


What is output procedure?

1027


What is redefine?

1244


What are fillers? What is the actual use of fillers? With mall/simple example?

1021


What are fillers?

1046


Explain the syntax of redefine?

936


Define redefine?

1135


Explain how to detect record is locked in cobol/400? What is the solution for that?

918