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 

what kind of values a variable of Type-PIC +(11)9.9(2) hold

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


Joined: 14 Apr 2006
Posts: 87
Topics: 33

PostPosted: Mon Mar 26, 2007 1:16 am    Post subject: what kind of values a variable of Type-PIC +(11)9.9(2) hold Reply with quote

can any body tell if a variable is decalred like this

05 WS-AMT1 PIC +(11)9.9(2)

what kind of values it will hold and what is the significance of declaring a variable like this.

When i checked like if a negative value is moved then value with - sign is getting displayed and positive value with + sign is getting dispalyed.

But before executing test program my understanding was that even though if we move negative value output will be displayed as positive value which is wrong.

Can any one please tell me what is the signifiance of declaring like this..
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Mar 26, 2007 7:04 am    Post subject: Reply with quote

it is an edit mask.

enterprise cobol:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/5.3.11.1?DT=20020920180651#TBLSYMPIC

VS COBOL:

intro and subtopics
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGYL1101/2.7.7?DT=19930312093006
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
asbhalamurrughan
Beginner


Joined: 18 Jan 2005
Posts: 1
Topics: 0
Location: chennai

PostPosted: Thu Apr 12, 2007 11:19 am    Post subject: Reply with quote

dbzTHEdinosauer wrote:
it is an edit mask.

enterprise cobol:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/5.3.11.1?DT=20020920180651#TBLSYMPIC

VS COBOL:

intro and subtopics
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGYL1101/2.7.7?DT=19930312093006
Hi,

If you are declaring as

05 WS-AMT1 PIC +(11)9.9(2)

1. If you are moving Positive Value, It will Display +
2. If you are moving Negative Value, It will Display -

But If you are declaring as

05 WS-AMT1 PIC -(11)9.9(2)

1. If you are moving Positive Value, It will Display Blank
2. If you are moving Negative Value, It will Display -

Hope It will clarify .

Best Of Luck...
Back to top
View user's profile Send private message Yahoo Messenger
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