You're most likely going to have to build the command in a program as a
test string and then call QCMDEXC if the number of addresses and content
could be different each time.

All email addresses should be in single quotes as well, especially coming
from a variable as you don't know if there will be any special characters
in it. It gets messy, but it's doable. I've seen a few projects that
crashed randomly because of emails with a special character (even a single
quote) which can really throw things off.

While not a good practice, I've seen email with single quotes (ie,
sam_o'hara@xxxxxxxxx). So that's another thing to look out for when
building the command string.

<vendor>
There are other solutions available that make it a lot easier and more
scalable as email systems change and require more security than just a
user/pw as well. And also allow the use of ILE functions to build and send
the email so you don't have to use a clunky command interface that wasn't
really designed with this in mind.

See www.bvstools.com/mailtool.html
</vendor>



On Mon, Feb 17, 2025 at 9:12 AM <smith5646midrange@xxxxxxxxx> wrote:

I am modifying a CL program that is doing a SNDDST. We want to make the
TOINTNET keyword a variable and store the value in a dataarea. The value
in
the dataarea is (email1.domain.com) (email2.domain.com). I have also
tried
((email1.domain.com) (email2.domain.com)). The problem is that it keeps
wrapping the entire value in single quotes.TOINTNET('(email1.domain.com)
(email2.domain.com)').



Without using logic to parse the value into multiple values, is there a way
to get SNDDST to use the value as passed? I'd also prefer not to build a
command string to be executed because there is quite a bit of concatenation
in the LONGMSG with single quotes and that gets ugly.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



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