How To move a value to an array using move verb?
Answer Posted / 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 |
Post New Answer View All Answers
Difference between array and sub-script ?
Have you used comp and comp-3 in your project? And how?
What are the pertinent COBOL commands?
How arrays can be defined in COBOL?
When is inspect verb is used in cobol?
How do you get the data to code the BMS macro?
how do you reference the variable unblock file formats from cobol programs
Name some of the examples of COBOl 11?
What are the cobol coding sheets?
Write a cobol program making use of the redefine clause.
what is the difference between COBOL2 AND COBOL390?
What is inspect in cobol ?
How to print 10 to 1 if the input have only 10 digit number?
What are the different rules of SORT operation?
how to move the records from file to array table. give with code example