IBM COBOL400 Question:
Download Job Interview Questions and Answers PDF
How array can be declare in cobol?
Answer:
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).
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).
Download IBM COBOL400 Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the difference between section,paragraph and sentences? | What is the difference between comp & comp-3? |