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

how to convert the recors form vsam file to db2 table tru file aid

0 Answers   TCS,


what is s013u000 for?

1 Answers   Hewitt,


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


copy 100 records without using ibm utilities

3 Answers  


can you declare redefine in level 01?

8 Answers   Patni,






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

0 Answers  


What is the figurative constant in cobol?

1 Answers  


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

1 Answers   L&T,


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

3 Answers   TCS,


How to use the same COBOL program in Batch and CICS on lines? explain with an example

0 Answers   IBM,


can we use variable picture clause as xx.99 in cobol.

3 Answers  


Categories