Code how to read 5th element of the array?

Answer Posted / ggp

In COBOL we can directly access the particular index of the
array using subscript.

Eg: Arrayname(5)
or
Move 5 to indx
Arrayname(indx).

Is This Answer Correct ?    22 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax of redefine?

529


Explain the input procedure?

530


Explain the output procedure?

566


What is sort?

530


What are fillers?

523






Explain the difference between comp & comp-3?

535


Explain the difference between section, paragraph and sentences?

503


Define redefine and its syntax?

533


How to update data area in cobol 400 program?

572


What is perform?

530


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

522


why icetool be used in programmer view?

2134


Define sort?

574


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

496


Define perform?

510