|
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 shouldthat
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
--
---------------------------------
Booth Martin
http://www.Martinvt.com <http://www.martinvt.com/>
---------------------------------
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.