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

Explain the output procedure?

574


What is input procedure?

578


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

552


Explain the difference between comp & comp-3?

546


Define perform? And its types?

504






Explain the types of perform?

525


Define redefine and its syntax?

542


why icetool be used in programmer view?

2143


seqence numbers in cobol

2660


What is sort? And its syntax?

669


What is the syntax of sort?

539


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

505


What is redefine?

555


What is output procedure?

543


What is sort?

531