how array can be declare in cobol?

Answer Posted / sivakumar s

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 ?    77 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is perform?

847


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

705


Explain the difference between section, paragraph and sentences?

689


What are fillers?

793


How to detect record is locked in cobol/400?

709


Explain the types of perform?

684


What is sort?

726


Explain the difference between search and searchall?

669


why icetool be used in programmer view?

2335


What is the syntax of redefine?

714


Explain what all the conditiones required for using open opcode on a file?

713


Explain how to update data area in cobol 400 program?

780


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

2250


What is input procedure?

766


Explain the syntax of redefine?

671