MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

alphanumeric to comp-3 field move

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Tue Dec 28, 2004 3:25 am    Post subject: alphanumeric to comp-3 field move Reply with quote

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
View user's profile Send private message Send e-mail
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Dec 28, 2004 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sat Jan 01, 2005 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group