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
What is the compute verb? How is it used?
Write the code implementing the perform … varying.
What are the access modes of START statement?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
how to access the file from prodution from changeman tool and to submit a file to production
how do you reference the variable unblock file formats from cobol programs
What are the different rules to perform a Search?
how do you reference the rrds file formats from cobol programs
What is comp-1 and comp-2?
Explain how to differentiate call by context by comparing it to other calls?
Difference between array and sub-script ?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is link edit in cobol?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc