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
Write down the divisions of cobol program?
What kind of error is trapped by on size error option?
What are the different rules for performing sort operation?
What is the utilization of copybook in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How many sections are there in data division in COBOL?
how to convert the recors form vsam file to db2 table tru file aid
what is difference between cobol and cobol/400
What are various search techniques in cobol? Explain.
How do you differentiate between cobol and cobol-ii?
What is length is cobol?
Why would you use find and get rather than to obtain?
How you can read the file from bottom?
Describe the cobol database components?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?