On 2020-05-13 11:49 a.m., gio.cot via RPG400-L wrote:
... CHGVAR VAR(&VAR) VALUE('mycc@xxxxxxxxx' *BCAT &VAR2)

SNDM FROM(&MAILFROM) +
TO((&MAILTO *N *TO) +
&var +
) ...
...
This is the log when i run my CLP
...
SNDM FROM('x@xxxxxxxxx')
TO(('mymail@xxxxxxxxx' *N *TO)
('mycc@xxxxxxxxx *N *CC')) ...
If a parameter has several parts, like the TO parameter here, you have to specify each part separately.

I don't know whether the SNDM command allows variables for the *N and *CC parts of the TO parameter, but if it does, you would have to have separate variables for each separate part of the parameter.

...
TO((&MAILTO *N *TO) +
('mycc@xxxxxxxxx' *N &cc_value)
...

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.