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 |
how to convert the recors form vsam file to db2 table tru file aid
what is s013u000 for?
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?
copy 100 records without using ibm utilities
can you declare redefine in level 01?
What are the various section in data division and briefly explain them.
What is the figurative constant in cobol?
what will happen if i give program name and member name as different? program runs successful or w'll abend?
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.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
How to use the same COBOL program in Batch and CICS on lines? explain with an example
can we use variable picture clause as xx.99 in cobol.