How To move a value to an array using move verb?
Answers were Sorted based on User's Feedback
one correction in Jagan's answer..
MOVE 1 to A(I)
we should not use [] for array in cobol.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / jagan
using PERFORM statements we can move a value to an array
using the MOVE verb.
Below is an example of In-Line Perform where we are moving
a value to an array A
01 Array
05 A PIC X(10) occurs 10 times.
PERFORM VARYING i from 1 by 1 until i > 10
MOVE 1 TO A[I]
END-PERFORM
| Is This Answer Correct ? | 14 Yes | 3 No |
Answer / r
In continuation with first answer below code need to be
added in
01 Array
05 A PIC X(10) occurs 10 times.
CODE: 01 ARRAY
05 A PIC X(10) OCCURS 10 TIMES INDEXED BY I.
| Is This Answer Correct ? | 0 Yes | 1 No |
Hi Devolopers.. i need ur help.. i have 3 years of exp in Manual testing and SQL, next month onwards i shifted in to MAINFRAME TESTING... i have ZERO Knowledge abt mainframes.... PLS SUGGEST ME WHAT I LEARN in AMEERPET? mainframe testing or mainframe total devolopment subject... AS a devoloper u know every thing tester what to do PLSSSSSSSSS help me ITS VERY URGENT...
can any one help -s806
write a program to eliminate duplicate records in a input file and send them to output file.
What are the pertinent COBOL commands?
In the JCL, how do you define the files referred to in a subroutine ?
In which area will you utilize 88 level items in cobol?
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
Difference between ps, esds
How may divisions are there in JCL-COBOL?
Can a Search can be done on a table with or without Index?
How do you do in-line PERFORM?