How To move a value to an array using move verb?
Answers were Sorted based on User's Feedback
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 |
Answer / srinivas yadav
MOVE VARIABLE TO ARRAY-ELEMENT.
EX: MOVE A TO WS-ARRAY.
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
What is level 66 used for ?
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?
how to move the records from file to array table. give with code example
What are the different open modes available in cobol?
give the examples for strings and unstrings in cobol
What is file status 39 ?
Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
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?
which is better comp or comp-3 in terms of memory utilization?
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?
What is the difference between binary search and sequential search?