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 what all the conditiones required for using open opcode on a file?

922


Explain the difference between comp & comp-3?

929


What is the syntax of sort?

879


Define redefine and its syntax?

939


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

923


What are fillers?

996


Explain the difference between search and searchall?

841


Explain how to update data area in cobol 400 program?

985


seqence numbers in cobol

3079


What is output procedure?

967


What are the types of perform?

980


What is comp?

1119


What is input procedure?

974


Explain the output procedure?

995


Define perform?

967