|
Nick Arndt wrote:
Hi all,It's not a one-for-one replacement, but if you know the length it's
How would you do the following in EGL: mychar = %editc(mynbr:'X');
My fields are defigned as such:
mynbr decimal(6,0);
mychar char(6);
when I do mychar = mynbr
I get: "76855 ". The result I would like is "076855"
Any Idea on how to do this?
pretty simple:
mychar = formatNumber(mynbr, "&&&&&&");
The upside to formatNumber is that it has a bit more flexibility:
Here's the 6.0 documentation:
http://publib.boulder.ibm.com/infocenter/radhelp/v6r0m1/index.jsp?topic=/com.ibm.etools.egl.doc/topics/reglinf0019.html
http://tinyurl.com/4m57rf
Joe
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-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.