Question: can we able to execute the foolowing statement move a,b toc,d' what will happen can any one tell about this
NIDHI
Nov 25th, 2005
It will move the values of a to c and b to d respectively, a and b remaining the same. Suppose a is 6, b is 9, c is 1, d is 2,
after execution of MOVE A, B TO C, D
values would be A-6
B-9
C-6
D-9
Mansoor
Mar 16th, 2006
Which one is the correct one...! Anyone let me know? Please....
Anuja Tiwari
Apr 5th, 2006
This will give a compilation error.
Ramya Krishnamurthy
Apr 11th, 2006
We ll not be able to execute the statement... It will give us a error message... As per syntax... we can move 1 variable to many or 1 to i but not many to many or many to one...
Ramya Krishnamurthy
Apr 11th, 2006
No we ll not be able to execute the statement... It ll give us a error message... As per the syntax... We ca move 1 to 1 or 1 to many but we cannot move many to 1 or many to many...
So the statement u r trying to execute is wrong...
u can make seperate move... wat u r trying to do is not possible
Kiran
Apr 17th, 2006
HI,
No we can't execute this statement, it's an error.
NarayaN
Apr 26th, 2006
The Closest group move statement would be MOVE CORRESPONDING.
MOVE CORRESPONDING GROUPA TO GROUPB
where,
01 GROUPA
02 NAME PIC A(10)
02 AGE PIC 99
02 GROUPB
02 ST-DETAILS
03 NAME PIC A(10)
03 AGE PIC 99
02 ST-MARKS
...
However, this can be used only on Group Variables and it'll move the values of the next level variables in Group A to the Group B.
intiaz ali
Oct 14th, 2006
No, we cant able to move by this syntax. its very confusing not only cobol complier but also human being. MOVE A,B TO C,D. Mean what .. a,b values has to move c,d ....
Can we able to execute the following statement move a,b toc,d' What will happen ?
Profile Answers by toprakashr Questions by toprakashr
Questions by toprakashr