How To move a value to an array using move verb?

Answer Posted / chandrababu naidu

01 ARRAY.
02 ARRAY2 PIC 99 OCCURS 5 TIMES INDEXED BY I.
PROCEDURE DIVISION.
MOVE LOW-ELEMENT TO ARRAY2 [ I ].
or
MOVE HIGH-ELEMENT TO ARRAY.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

1552


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


What is a SSRANGE and NOSSRANGE?

825


What is the difference between comp and comp-3?

704


What are the different data types in cobol?

801






what is difference between cobol and cobol/400

21570


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


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

710


how do you reference the fixed unblock file formats from cobol programs

712


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What are the pertinent COBOL commands?

2626


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


Define cobol?

866


What is amode(31)

726