View previous topic :: View next topic |
Author |
Message |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Tue Dec 28, 2004 3:25 am Post subject: alphanumeric to comp-3 field move |
|
|
Hi,
I have a group variable as below
01 group1
02 a x(3)
02 b x(3)
02 c x(3)
we have a new group variable
01 group2
02 a x(3)
02 b 9(4) comp-3
02 c 9(4) comp-3
we want to move from group1 to group2. and we are going to do some operations on group2 fields. I know that if we are not going to do any operations on b,c fields the move will be ok. how to move b,c values which are alphanumeric to group2 varibales b,c.
thanks in advance
nadh |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Dec 28, 2004 3:58 am Post subject: |
|
|
nadh,
You can either use a Group move (MOVE GROUP1 TO GROUP2) where the movement of variables follows the rules of ALPHANUMERIC move. So, the movement actually takes place as a BLOCK of 9 alphanumeric characters.
Or
You can either have GROUP - 2 to REDEFINE GROUP - 1. In this case you don't have the overhead of MOVEMENT of variables. You can just load values to the fields in GROUP1 and refer the values from the corresponding fields in GROUP 2.
Hope this helps,
Thanks,
Phantom |
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Sat Jan 01, 2005 1:32 pm Post subject: |
|
|
Hi Nadh,
Just curious, are b and c of group1 in comp-3 format? If so, are you sure they will ALWAYS be in comp-3 format? _________________ Regards, Jack.
"A problem well stated is a problem half solved" -- Charles F. Kettering |
|
Back to top |
|
 |
|
|