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 do you define single dimensional array and multidimensional array in your cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How do you reference the fixed block file formats from cobol programs
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What guidelines should be followed to write a structured cobol prgm?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What the difference is between continue and next sentence?
Write a program to explain size error.
Explain the configuration section of a cobol program with examples of syntax.
Which division and paragraphs are mandatory for a COBOL program?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Discuss about changing dataset name in proc.
What are the various section in data division and briefly explain them.