how array can be declare in cobol?

Answer Posted / rajesh

Array can be declared in cobol using the OCCURS clause.

Syntax is,

For one dimensional array,

01 Arrays.
05 Var1 PIC X(10) Occurs 10 times.


For two dimensional array,

01 Arrays.
03 AAA Occurs 10 times
05 BBB Occurs 10 times
07 Value PIC 9(3).

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is redefine?

801


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

687


Explain how to convert 2010/02/11 to m/dd/yyy.. With string and without string if any other method... Code?

862


Explain the types of perform?

675


Define redefine and its syntax?

712


What is perform?

841


What is comp?

871


How to detect record is locked in cobol/400?

704


Define redefine?

847


What is the actual use of fillers?

694


What is the syntax of sort?

684


Explain the difference between section, paragraph and sentences?

682


What is input procedure?

760


What is output procedure?

703


Define perform?

757