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



Huh?

I know that atoi() and atoll() exist, I use them all the time.
I also know about %char() and %editc() and %editw().
I was talking about consistency. Either we need new built-ins with
consistent names or we need things like %DEC() to be re-purposed to
convert character to decimal. Then we still end up needing Convert
Character to Hex and Hex to Character built-in functions. I know about
cvthc and cvtch, I use them all the time.  But I like to see certain
high-use featured integrated into the language vs. being imported from
an external source. RPG IV does not have a library of services or
procedures that is shipped with the compiler for use by everyone. One
that has source code available to it. Maybe that would solve this issue.


The Microsoft-line of "why don't you write it yourself" doesn't work in
this environment because unless you can depend on something being in an
iSeries shop by default, you won't get high usage of that thing,
whatever it is.

That's what happened to CodeStudio and to Code/400, you could never
depend one or the other being available in a shop, so you stuck with
tried and true SEU/PDM to build code. Now, IBM includes CODE/400 as of
V5R1 (retro'd to V4R5). While I see more usage of it than before, I
still rarely see it being used. While it is still the exception, at
least now, when I do see it being used, the majority of the shop is
using it rather than the 1 person that it used to be.

Bob Cozzi


> -----Original Message-----
> From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]
On
> Behalf Of James Rich
> Sent: Wednesday, February 27, 2002 2:16 PM
> To: rpg400-l@midrange.com
> Subject: RE: Strange behavior w/%editc()
>
> On Wed, 27 Feb 2002, Bob Cozzi (RPGIV) wrote:
>
> > There certainly needs to be:
> >
> > CharToDec()
>
> atoi()
>
> > DecToChar()
>
> %editc
>
> > CharToHex()
> > HexToChar()
>
> Hmmm... not sure how this is any different than above.
>
> > I realize we already have %CHAR() that converts decimal to
character.
> > But we also have %DEC() which does not convert character to decimal.
> > So I think we need some new built-in functions that are named
> > consistently, OR we need %DEC to also convert character values to
> > decimal.
>
> We already have the tools to do just what you are talking about.  If
> people don't want several ways to do things then these new opcodes
> shouldn't be added.  Or maybe people want RPG to be more like Perl and
> have many different ways to do the same thing.  But what is needed is
> already there.
>
> James Rich
> james@eaerich.com
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> 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.