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

Explain the syntax of redefine?

907


What is input procedure?

989


What is the syntax of redefine?

943


Explain the types of perform?

1007


How to detect record is locked in cobol/400?

970


What are fillers?

1029


What is perform?

1086


Define perform? And its types?

979


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

961


why icetool be used in programmer view?

2564


What is output procedure?

993


Explain how to update data area in cobol 400 program?

1012


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

996


Define redefine and its syntax?

964


What is comp?

1142