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 |
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.
How does IDMS communicate with CICS?
1) can we display the index?
What is inspect in cobol ?
what is sync clause?
what happens if we wont give timestamp in precompilation process ?
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.
what is the maximum error code in mainframe
What is the difference between PIC 9.99 and PIC9v99?
What divisions, sections and paragraphs are mandatory for a COBOL program?
how can we get current dat and time thru cobol pgm
Why we need to use redefine clause when we can define the variable seperately... what is actual need....