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 

Redefine COMP-3

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


Joined: 14 Jun 2004
Posts: 2
Topics: 2

PostPosted: Fri Mar 23, 2007 8:41 am    Post subject: Redefine COMP-3 Reply with quote

Hi all,

I defined two variables as below

01 A PIC S9(10)V USAGE COMP-3.
01 B REDEFINES A.
05 C PIX X(06).

I moved 000001 to variable A

When i displayed A and B, A have 000001 but B have only spaces.

Any problem in my redefination. Please suggest.

Thanks,
Raj.
_________________
Raj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Fri Mar 23, 2007 8:51 am    Post subject: Reply with quote

Quote:

When i displayed A and B, A have 000001 but B have only spaces.



swaasum,

It is NOT spaces. If you set HEX on you will find that B actually has
Code:

000001
00000C


which is the same as what has A has

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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