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 

Problem with displaying variable with signed

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


Joined: 04 May 2005
Posts: 21
Topics: 11

PostPosted: Thu May 12, 2005 3:26 pm    Post subject: Problem with displaying variable with signed Reply with quote

Hai,

I am browsing an ouput and i see display like this "000162A" from cols 24 to 30.
When i had a look at the program which is generating this output i see the declaration for a variable which is declared
as PIC S9(5)V99 value ZERO.Can anyone tell me why is the output in the 7 th byte a EBCDIC character when it is ought to be numeric.Then i put hex on to see the value of EBCDIC A to be C1.

My understanding is that since the variable is declared as SIGN,which does not occupy any extra space & it can hold both positive & negative value,in this situation has either positive or negative sign it and it is trying to store it in the rightmost byte that is why there is a EBCDIC value in the 7 th byte.Morever if that is the case,then how do i see the exact value of the variable on the display without the EBCDIC character.Does it always happen with the SIGNED variables.
What is the exact value of the variable how do i know that .
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Fri May 13, 2005 3:30 am    Post subject: Reply with quote

Tommy123,

Check out this link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/1.3.4.7?DT=20020923143836
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri May 13, 2005 5:39 am    Post subject: Reply with quote

Tommy123,


Check this link which explains in detail about your question

http://www.mvsforums.com/helpboards/viewtopic.php?t=2906&highlight=overpunch

Hope this helps...

Cheers

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