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

if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,


How does IDMS communicate with CICS?

1 Answers   Covansys, Satyam,


1) can we display the index?

3 Answers   ADP, IBM,


What is inspect in cobol ?

0 Answers   Infosys,


what is sync clause?

2 Answers   DELL,






what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


what is the maximum error code in mainframe

2 Answers  


What is the difference between PIC 9.99 and PIC9v99?

0 Answers  


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers   Arigo Infotech,


how can we get current dat and time thru cobol pgm

3 Answers   DELL,


Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,


Categories