Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to handle negative values in greens creens?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
deepaannjohn

New User


Joined: 23 Feb 2006
Posts: 19
Location: Bangalore

PostPosted: Tue Oct 25, 2011 1:42 pm    Post subject: How to handle negative values in greens creens?
Reply with quote

Hi,
I have an IMS DC program which is reading from a table and displaying on the green screen. Thru green screen, new rows can be added and existing rows can be changed also.
There is an integer field in the table (UNIT-START-NO PIC S9(9) USAGE COMP.) which can have negative and positive values. How can I handle this in map and program?
Sample values:
UNIT_START_NO
0
0
300000000
0
-999999999
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Oct 25, 2011 1:52 pm    Post subject: Reply to: How to handle negative values in greens creens?
Reply with quote

Quote:
How to handle negative values in greens creens?

the same way You would handle them on a different colored screen icon_cool.gif

it is odd that after 5 years of IT programming You do not know how to <display> a number
at the top of the page there is a link to the relevant programming manuals
where You will find all you might want to know on the subject ( apart the screen color )
Back to top
View user's profile Send private message
deepaannjohn

New User


Joined: 23 Feb 2006
Posts: 19
Location: Bangalore

PostPosted: Tue Oct 25, 2011 1:55 pm    Post subject: Reply to: How to handle negative values in greens creens?
Reply with quote

Tell me how to handle it in a diffeent colored screen icon_smile.gif

I have 7+ years of experience in IT programming btw :)though I did not work much in IMS DC

Also, I can handle it programmatically - no issues. But I want to know if there is any IMS DC provided routines / attributes for this ratehr than doing it programmatically.

Probably, if I rephrase it -
if I keep the field as Number on the MFS - I cant key in - or +ve. If I keep it as X in MFS, I need to handle it programmatically. So if there any attributes which might help like FILL or JUST = R
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Oct 25, 2011 1:59 pm    Post subject: Reply to: How to handle negative values in greens creens?
Reply with quote

OMG... icon_eek.gif

an organization which up to now has dealt only with positive numbers

or a very structured organization with different programming groups and skills according to the sign of the entities dealt with
Back to top
View user's profile Send private message
deepaannjohn

New User


Joined: 23 Feb 2006
Posts: 19
Location: Bangalore

PostPosted: Tue Oct 25, 2011 2:12 pm    Post subject: Reply to: How to handle negative values in greens creens?
Reply with quote

Tell me how to handle it in a diffeent colored screen icon_smile.gif

I have 7+ years of experience in IT programming btw :)though I did not work much in IMS DC

Also, I can handle it programmatically - no issues. But I want to know if there is any IMS DC provided routines / attributes for this ratehr than doing it programmatically.

Probably, if I rephrase it -
if I keep the field as Number on the MFS - I cant key in - or +ve. If I keep it as X in MFS, I need to handle it programmatically. So if there any attributes which might help like FILL or JUST = R
Back to top
View user's profile Send private message
deepaannjohn

New User


Joined: 23 Feb 2006
Posts: 19
Location: Bangalore

PostPosted: Tue Oct 25, 2011 2:14 pm    Post subject: Re: Reply to: How to handle negative values in greens creens
Reply with quote

enrico-sorichetti wrote:
OMG... icon_eek.gif

an organization which up to now has dealt only with positive numbers

or a very structured organization with different programming groups and skills according to the sign of the entities dealt with


very funny icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Oct 25, 2011 2:23 pm    Post subject: Reply to: How to handle negative values in greens creens?
Reply with quote

look here for the parameters You can specify for the field definition macros in an MFS <definition>
IMS V10 System Utilities Reference
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFSSURH0/CCONTENTS?SHELF=DFSSH0H1&DN=SC18-9968-00&DT=20070908224507

IIRC cannot be done <natively>
the NUMERIC <thing> invokes an hardware feature which prevents typing non numeric chars, does not guarantee the proper placement of the sign
( it just allows 0-9 + - )
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us