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
Can a Search can be done on a table with or without Index?
What is perform what is varying?
) how do u code after getting data?
how do you reference the printer file formats from cobol programs
Explain about different table spaces.
what happens if parmparameter passes zero bytes to the program
Explain the configuration section of a cobol program with examples of syntax.
How to know whether the module is dynamical or statistical?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How do u write test cases?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What kind of error is trapped by on size error option?
Write a cobol program making use of the redefine clause.
Write some characteristics of cobol as means of business language.
Are you comfortable in cobol or jcl?