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 / vinay gautam

This is a working example of 1D arrey...
in last ex. o posted there was a comment line......


Working-storage section.
77 index1 pic 9 value 1.
01 week value 'montuewedthufrisatsun'.
03 days pic x(3) occurs 7 times indexed by idx.

Procedure division.
perform varying index1 from 1 by 1 until index1 >= 8
display days(Index1)
End-Perform.
stop run.


Regards Vinay Gautam

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sort? And its syntax?

1060


What is input procedure?

1004


Define redefine and its syntax?

985


What is output procedure?

1009


Define perform? And its types?

992


I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks

2489


How to detect record is locked in cobol/400?

981


Explain the syntax of redefine?

920


What is sort?

962


Explain the difference between comp & comp-3?

982


Explain the input procedure and output procedure?

918


Define perform?

1012


What are the types of perform?

1045


What are fillers?

1040


How to update data area in cobol 400 program?

1051