View previous topic :: View next topic
|
Author |
Message |
NAGARJUN CARALAPATI
New User
Joined: 09 Oct 2007 Posts: 22 Location: chennai.India
|
|
|
|
Could any one tell me the result of the following statment.
Move a, b to c, d |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Try it ..it's faster.. why to wait some 'forum' to answer you. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
NAGARJUN CARALAPATI wrote: |
Could any one tell me the result of the following statment.
Move a, b to c, d |
a is moved to c and b is moved to d
This is incorrect. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Yes it is true as said by sri
This is incorrect. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
sri_mf wrote: |
a is moved to c and b is moved to d |
Say what?
I'm from skeptical, show me the link...... |
|
Back to top |
|
|
sdaundkar
New User
Joined: 11 Oct 2007 Posts: 1 Location: New York
|
|
|
|
I don't think that's correct syntax for a MOVE statement !! |
|
Back to top |
|
|
annujp
New User
Joined: 31 Aug 2005 Posts: 39 Location: St Paul,MN
|
|
|
|
I tried this out, the statement gave a compile error.
Code: |
MOVE 'A' TO WS-A.
MOVE 'B' TO WS-B.
MOVE WS-A, WS-B TO WS-C, WS-D.
DISPLAY 'WS-C' WS-C.
DISPLAY 'WS-D' WS-D.
|
The compile error i got is
Code: |
The "MOVE" statement was invalid. Expected "TO", but found "WS-B"
The statement was discarded.
|
Hope this helps.
Anitha |
|
Back to top |
|
|
inamadugu Warnings : 1 New User
Joined: 23 Aug 2007 Posts: 18 Location: Delhi
|
|
|
|
Hi,
You cannot move two values at a time to another two values.
There should be one sending field and can be any receiving fields.
like:
MOVE WS-A TO WS-C,WS-D. (is possible)
where ws-a is the sending field and ws-c, ws-d are receiving fields
your code can only be written as below.
MOVE 'A' TO WS-A.
MOVE 'B' TO WS-B.
MOVE WS-A TO WS-C.
MOVE WS-B TO WS-D. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
I have seen in some references but i have not tried it.
Thanks for correcting me.. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Sri,
Quote: |
I have seen in some references |
Could you redirect us to the link or copy the code what you had seen. |
|
Back to top |
|
|
|