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
HOw can I get the negative sign while deduct high value from low value
What is a SSRANGE and NOSSRANGE?
How do get the result of your program directly on your pc?
How many sections are there in data division in COBOL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Write a program to explain size error.
What is the problem of ordered sequential files access?
What is the local-storage section?
Write a cobol program making use of the redefine clause.
Explain the configuration section of a cobol program with examples of syntax.
Define static linking and dynamic linking.
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
how do you define single dimensional array and multidimensional array in your cobol?
What is perform what is varying?
Which mode is used to operate the sequential file?