View previous topic :: View next topic
|
Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hi,
I have two variables
ws-br-no 9 6 N
ws-ac-no 9 6 N
Combination of two varaible will give me the result.
I want to move this into variable
ws-acc-no 9 12 N
but i am not aware how to do data movement in this case.
Please suggest how to define the variable for movement.
Regards, |
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
In this easytrieve program..
You may define the 'ws-acc-no' as group variable. You dont have to move the fields individually.
ws-acc-no 9 12 N
ws-br-no ws-acc-no 9 6 N
ws-ac-no ws-acc-no 15 6 N |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
I think it has be coded as follows :
Code: |
ws-acc-no 9 12 N
ws-br-no ws-acc-no 6 N
ws-ac-no ws-acc-no +6 6 N
|
|
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
Even the one I suggested would be ok right Peter? Just checking.. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Hello technut,
I guess so according to the manual.
I always used the "+" in redefining fields.
But of course that is not sanctifying. |
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
Thanks for checking Peter! |
|
Back to top |
|
|
|