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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / srinivas yadav

MOVE VARIABLE TO ARRAY-ELEMENT.
EX: MOVE A TO WS-ARRAY.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / pak

move VALUE to array_name(index/subscript)

where VALUE is the data to be input in array.
if the array is indexed use,index or else subscript

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is rmode(24)

0 Answers  


How can you display the SPOOL information ?

2 Answers  


Whats the difference between search & search ALL?

3 Answers   IBM,


if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,






How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?

9 Answers   TCS,


) How do u handle errors in BMS macro?

0 Answers   IBM,


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

0 Answers  


) what is the difference between AID and HANDLE AID?

0 Answers   IBM,


which is better either static call or dynamic call? and why?

5 Answers   HCL,


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


Categories