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 link edit in cobol?
What are the various section in data division and briefly explain them.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How do you reference the fixed block file formats from cobol programs
What is difference between static and dynamic call in cobol?
What is the difference between Global and External Variables?
What are the rules of the move verb?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Difference between cobol and cobol-ii?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How many sections are there in data division in COBOL?
How arrays can be defined in COBOL?