× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



ok, so i defined it 9y2 with edit code N...

when in debug i run the pgm and enter -111.13 into the screen field... but
when i look at the value in debug it shows it without the negative sign...
ex. WSNETGL = 0000111.13

Plus when this is put into the PF it doesn't have the negative sign
either...


Thanks,

Jay Vaughn
Senior I5 Programmer/Analyst
RateWatch
(P) 251.209.8968
www.rate-watch.com


-----Original Message-----
From: Booth Martin <booth@xxxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Date: Tue, 12 Feb 2008 10:59:05 -0600
Subject: Re: dspf field definition


Define your screen field as 9Y/2. "Y" seems to work better than "S"t,
in my experience but I can;t tell you why.

Users I've talked to seem to like the left side minus sign of EDTCDE('N') ?


Valid entries for display files

These entries are valid for display files.

Entry keyboard shifts Meaning Data type permitted
Blank Default
X Alphabetic only Character
A Alphanumeric shift Character
N Numeric shift Character or numeric
S Signed numeric Numeric
Y Numeric only Numeric
W Katakana (for Japan only) Character
I Inhibit keyboard entry Character or numeric
D Digits only Character or numeric
M Numeric only character Character





Jay Vaughn wrote:
I need to accept both +/- numeric data from a dspf field... how should
that
be defined? Any specific edit codes?

it is a 9,2 defined numeric field...

Thanks,

Jay Vaughn
Senior I5 Programmer/Analyst
RateWatch
(P) 251.209.8968
www.rate-watch.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.