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 sort?

540


Explain the syntax of redefine?

526


Define redefine?

564


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

537


What is sort? And its syntax?

675






Explain the difference between comp & comp-3?

551


Define perform?

526


What are the types of perform?

580


How to update data area in cobol 400 program?

587


Explain the input procedure?

543


Explain the output procedure?

585


What is output procedure?

549


seqence numbers in cobol

2668


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

656


why icetool be used in programmer view?

2149