Arrays in COBOL/400
Answers were Sorted based on User's Feedback
Answer / mvrk
How to load the entire file into an Array in COBOL/400?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / surya
I believe we dont have verb to load the entire file details in to COBOL400 table. So we go for traditional method: read the records in file one by one and load the records in to table.
First we should the maximum records available in the file, so single dimension table occur value should mention according to that.
| Is This Answer Correct ? | 0 Yes | 0 No |
write a cobol program to display prime numbers between 1 to 100?
Code how to read 5th element of the array?
How u detect record is locked in Cobol/400 ? Wat is the solution for that ?
Define perform? And its types?
What is perform?
Explain the syntax of redefine?
Can we open close file in COBOL any number of times?
What is sort?
I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks
What is the syntax of sort?
01 A PIC 9. 01 B PIC 99V1. 01 C PIC 99. MOVE 1 TO A. MOVE 0.2 TO B. COMPUTE C ROUNDED TO 3/3 + A.
Explain the difference between section, paragraph and sentences?