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: 10257
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: 10257
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: 10257
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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


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