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 level 66 used for ?

3 Answers   TCS,


What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?

1 Answers   Kuwait Oil Company,


how to move the records from file to array table. give with code example

0 Answers   ADP, Syntel,


What are the different open modes available in cobol?

0 Answers  


give the examples for strings and unstrings in cobol

2 Answers   IBM,






What is file status 39 ?

10 Answers   JPMorgan Chase,


Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

1 Answers  


WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


which is better comp or comp-3 in terms of memory utilization?

6 Answers  


How to Write the RESTART Logic Using COBOL?

4 Answers   GalaxE, L&T, Syntel, TCS,


What is the difference between copy and include in cobol?

1 Answers  


What is the difference between binary search and sequential search?

0 Answers  


Categories