IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to handle negative values in greens creens?


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 25, 2011 1:52 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 25, 2011 1:59 pm
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 25, 2011 2:23 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top