Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 10327
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: 10327
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us