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 are the different rules of SORT operation?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is cobol?
How arrays can be defined in COBOL?
How to remove 2 duplicate records and copy only one using job control language?
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?
What is the difference between binary search and sequential search?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What guidelines should be followed to write a structured cobol prgm?
What is the use of intialize verb?
What are the various section in data division and briefly explain them.
What is the difference between comp and comp-3 usage?
how do you reference the rrds file formats from cobol programs
how do you reference the ksds vsam file formats from cobol programs