×
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.
It's been a while since I've had to use it, but would %EDITC(value:'N') work for left sided negative placement?
N, O, P, and Q all show left handed negatives.
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Charles Wilt
Sent: Friday, September 20, 2019 10:10 AM
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] EDITC and EDITW
All,
I am admittedly very rusty with edit codes and edit words, %char() is usually all I every need.
Just to make sure I'm not missing something...
There doesn't appear to be an edit code that will give me
- left hand negative sign
- lead zero if number less than 1.00
packed(5:2) examples
"-0.95"
"-2.25"
"0.55"
"5.23"
Also, it doesn't appear that EDITW supports a left hand side negative sign?
Lastly, doesn't appear SQL can do it either...
Guess I'll need an alternative for a valid JSON number...
Thanks!
Charles
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=TRM22a2q2ENZDxdZ_Nz-0OCGEspXTWPuaB6Jil0RfKE&r=o-YzpsmRCPgZlWO4EB4wsOj50O0KPLUTK9BP-UzK-UQ&m=DUJOG3iUduGs13OmrgJ3rpw_AsoD5kbGXNHuG-iIK0E&s=pwybf81NZGWze8vvJVtwrajQm2rajbebb7L2fc8LHL4&e=
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=TRM22a2q2ENZDxdZ_Nz-0OCGEspXTWPuaB6Jil0RfKE&r=o-YzpsmRCPgZlWO4EB4wsOj50O0KPLUTK9BP-UzK-UQ&m=DUJOG3iUduGs13OmrgJ3rpw_AsoD5kbGXNHuG-iIK0E&s=IbukstSy2vw7xpWS2YC1y7k8-u9uM7rEQt1nB0U07jc&e=.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=TRM22a2q2ENZDxdZ_Nz-0OCGEspXTWPuaB6Jil0RfKE&r=o-YzpsmRCPgZlWO4EB4wsOj50O0KPLUTK9BP-UzK-UQ&m=DUJOG3iUduGs13OmrgJ3rpw_AsoD5kbGXNHuG-iIK0E&s=FLmDYGAarvGSjDE7OgqSxhsukRsbiAexTDtl9dO6G_A&e=
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.