how array can be declare in cobol?

Answer Posted / ahmed

01 ARRAYNAME
05 ARRAY-RECDFORMAT OCCURS 20 TIMES
10 ARRAYNAME-FIELDNAME1 PIC X(20)
10 ARRAYNAME-FIELDNAME2 PIC X(30)

AND WE CAN ACCESS THIS ARRAY BY USING SUBSCRIPT...
LIKE DISPLAY ARRAY-NAME(I)
AND ALSO INDIVIDUAL FIELD: DISPLAY ARRAYNAME-FIELD1(I)

Is This Answer Correct ?    32 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to update data area in cobol 400 program?

775


What is output procedure?

711


What is sort? And its syntax?

825


Explain the output procedure?

786


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

703


What is the actual use of fillers?

699


What are the types of perform?

723


What is the syntax of sort?

693


What is input procedure?

764


Explain the difference between comp & comp-3?

700


Explain the input procedure?

695


why icetool be used in programmer view?

2335


Define perform?

758


Define perform? And its types?

721


Explain how to update data area in cobol 400 program?

780