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 |
Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy
What rules are followed by the search verb.
can we use the two 01 level in file discription ?
wht happens if we dnt give scope terminator ?
Mention the guidelines to write a structured cobol program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps