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

What is comp?

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,


What is the syntax of redefine?

0 Answers  


How to detect record is locked in cobol/400?

0 Answers  


Explain the difference between comp & comp-3?

0 Answers  






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

0 Answers  


write a cobol program to display prime numbers between 1 to 100?

5 Answers   Cap Gemini, NISA,


How u detect record is locked in Cobol/400 ? Wat is the solution for that ?

2 Answers   CGI,


Define redefine?

0 Answers  


Define sort?

0 Answers  


What are Fillers ? What is the actual use of Fillers ? With small/simple Example..

1 Answers   Patni,


Define perform?

0 Answers  


Categories