× 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 Ron,

> Just had a program of mine blow up when the user keyed a subject line for
> an email message and used the " ' " in the field.  So when the CL program
> built the string for the submit job, the dang " ' " (single quote) caused
> the string to be built incorrectly.  For now I have the user keying two
> single quotes to indicate one quote.

Whaahuh?  Why are you submitting a job with a string like this?  Obviously
if you do that, you're going to have to be VERY VERY VERY careful about
the user's input.  Not just quotes, but all sorts of things could cause
problems.

Why not use something like a file, user space, data queue, data area...
anything...  to pass this data.  Or write the program so that it doesn't
need to submit a job?


> If this were an RPGLE program I'd use Scan and Replace to make each
> single quote two single quotes.  Looking for a more permanent solution
> that I could code so that I could replace the single quotes with dual
> single quotes.  Does anyone have any ideas?

What language is it written in?  This is the RPG mailing list.  If you're
question is "how do I scan for and replace a character in language XXXX"
then you should be asking it on the mailing list for language XXXX.

Language                 Mailing List
------------             -----------------------
 RPG                     RPG400-L
 CL                      MIDRANGE-L
 C                       C400-L
 COBOL                   COBOL400-L
 Java                    JAVA400-L
 MI                      MI400
 Perl                    PERL400

The following web page lists all of Midrange.com's mailing lists, and you
can click the appropriate mailing list name to sign up for it:

http://www.midrange.com/lists.htm

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.