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


Please Help Members By Posting Answers For Below Questions

What is link edit in cobol?

744


What are the various section in data division and briefly explain them.

692


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1949


How do you reference the fixed block file formats from cobol programs

699






What is difference between static and dynamic call in cobol?

772


What is the difference between Global and External Variables?

659


What are the rules of the move verb?

699


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.

3713


Difference between cobol and cobol-ii?

704


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.

5673


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052


What is an in line perform? When would you use it? Anything else you wish to say about it.

641


How many sections are there in data division in COBOL?

676


How arrays can be defined in COBOL?

661