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 

Negative Value from Map

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Mon Jun 27, 2005 12:43 pm    Post subject: Negative Value from Map Reply with quote

Hi,

I believe we cannot have a sgined variable when I am receiving a value from the map into my program. Lets say variable A has PIC X(4) and I add -123 from the map which is received and moved to a variable B which is PIC S9(4) COMP. Will this variable B treat the value '123' as negative and correctly process the data?

For example if B is now added to C (value +123) to give D, will D have a value of zero or would it result in a value of 246?

Thanks
_________________
Cheers!
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jun 27, 2005 2:57 pm    Post subject: Reply with quote

abracadabra,

Most shops have a NUMERIC edit program which will reformat the contents from the screen to the actual values. In this case you need to inspect/unstring and move the contents accordingly.

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 -> CICS and Middleware 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