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

how do you define single dimensional array and multidimensional array in your cobol?

864


What is the Purpose of POINTER Phrase in STRING command in COBOL?

962


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

905


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

911


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1744


What guidelines should be followed to write a structured cobol prgm?

863


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

2183


What the difference is between continue and next sentence?

870


Write a program to explain size error.

884


Explain the configuration section of a cobol program with examples of syntax.

863


Which division and paragraphs are mandatory for a COBOL program?

921


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1978


What is the difference between a binary search and a sequential search what are the pertinent cobol?

925


Discuss about changing dataset name in proc.

955


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

910