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



Hans wrote:
> Offhand, I don't know what the OS/400 functions are for properly
> encoding parameter values and escaping html text, so check the
> documentation.  (I know that Python programmers use the functions
> "urllib.quote_plus()" and "cgi.escape()" for these purposes.)

Bob replied:
>Great, and since the source for Python is available, why not just port
>these to the RPG IV language as built-in functions?
>
>I mean, I've written similar routines in RPG IV just for grins, but
>built-in functions that support CGI programming are something that is
>widely needed.
>So either stop teasing us poor old RPG coders, or put your money where
>your mouth is. :)

Bob:  Well, I was hoping someone would pipe up and say
what the equivalent iSeries functions are for encoding
parameter values and escaping html text.  You've done
some CGI programming in RPG, haven't you?  (I believe
I've seen some "wrapper" functions available for
download on your rpgiv.com web site.)

Regarding Python, the modules "urllib" and "cgi" aren't
really part of the language, but they are included in
the standard distributions of the language.  But of
course, the development model is totally different.
These modules may well have been written by someone
outside the core group of Python developers, and since
it's all an open-source project, there's no problem
with including all these pieces together.  On the other
hand, the RPG compiler is a commercial product, and so
intellectual property and licensing issues are
completely different.

But then, the functionality that exists in Python
modules such as these are perfect for RPG procedures.
When your "Comprehensive RPG Archive for Modules and
Procedures" is up and running, I'll expect to see this
functionality included!

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.