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 are the types of perform?

557


Define sort?

571


What is the actual use of fillers?

490


Explain the output procedure?

560


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

487






What is input procedure?

566


why icetool be used in programmer view?

2132


Explain the difference between search and searchall?

500


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

630


Define perform?

501


What are fillers? What is the actual use of fillers? With mall/simple example?

530


Explain the input procedure?

525


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

2051


Explain the input procedure and output procedure?

508


What is sort?

525