× 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.



Hi Chuck,
Thanks a lot.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: March 17, 2008 5:57 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Numeric to character conversion in RPGIII

Irrespective of language, there are the editing APIs. From an edit
code or edit word which represents the manner in which to convert
internal numeric representation into character string for presentation,
a mask is created. The mask and the numeric data can then be passed to
the Edit API to generate the character string. The generated mask can
be stored, and then used repeatedly; i.e. the input to the edit word or
edit code feature, does not need to be converted into a mask each time.

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/edit1.h
tm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QECCVTE
W.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QECCVTE
C.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QECEDT.
htm

Input to EdtWrd [edit word] feature is a string. Input to EdtCde
[edit code] is a single character. To review about how to specify the
edit input, see that detail for /display files/ for example, at:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzakc/rzakcm
stdfedtcd.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzakc/rzakcm
stdfedwrd.htm

Regards, Chuck
--
All comments provided "as is" with no warranties of any kind
whatsoever and may not represent positions, strategies, nor views of my
employer

Vaidhyanathan, Prakash wrote:
Is there a way to suppress leading zeros while moving a numeric field

to an alpha field in RPGIII (both fields have same length).
Unfortunately my shop uses RPGIII and is loathe to convert to RPG1V.
Please help

--
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 thread ...

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.