Code how to read 5th element of the array?

Answers were Sorted based on User's Feedback



Code how to read 5th element of the array?..

Answer / 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

Code how to read 5th element of the array?..

Answer / dc

%lookup

Is This Answer Correct ?    4 Yes 14 No

Post New Answer

More COBOL400 Interview Questions

How COBOL helps Mainframe to maintain large records ???

1 Answers   Satyam,


What is sort?

0 Answers  


Define perform?

0 Answers  


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC

2 Answers   HP,


seqence numbers in cobol

0 Answers   TCS,






What is the actual use of fillers?

0 Answers  


what is the cobol compiler?

2 Answers   TCS,


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC * EVALUATE TRUE WHEN SQLCODE = +000 MOVE WS-COUNT TO Copybook field WHEN SQLCODE = +100 MOVE ZEROES TO Copybook field

2 Answers  


How we can update data area in cobol 400 program?

12 Answers   Accenture,


Can we open close file in COBOL any number of times?

2 Answers   Kanbay,


What is redefine?

0 Answers  


What is output procedure?

0 Answers  


Categories