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



Maybe this:
CHGVAR VAR(&VAR) VALUE('mycc@xxxxxxxxx' *bcat '''' *BCAT &VAR2)

Not sure since I'm not familiar with SNDM.

Sam


On 5/13/2020 11:49 AM, gio.cot via RPG400-L wrote:
Hi all

I use SNDM (http://uzaemon.d.dooo.jp/) command to send mail from IBM i ;
now i should change a CLP porgram that run the command SNMD , but the CC
mail could not be present so i would not populate the parameter *CC.

I created this test CLP :


DCL VAR(&MAILFROM) TYPE(*CHAR) LEN(100) +

VALUE('x@xxxxxxxxx')

DCL VAR(&MAILTO) TYPE(*CHAR) LEN(100) +

VALUE('mymail@xxxxxxxxx')

DCL VAR(&VAR) TYPE(*CHAR) LEN(256)

DCL VAR(&VAR2) TYPE(*CHAR) LEN(50) VALUE('*N *CC')

CHGVAR VAR(&VAR) VALUE('mycc@xxxxxxxxx' *BCAT &VAR2)


SNDM FROM(&MAILFROM) +

TO((&MAILTO *N *TO) +

&var +

) +

FILE(QGPL/QTXTSRC) MBR(MAILDDT) +

SUBJECT('tst')


But it don't work as the &VAR is populated in this way "('mycc@xxxxxxxxx
*N *CC')" instead of

"('mycc@xxxxxxxxx' *N *CC)" . Which workaround to solve this build var ?


This is the log when i run my CLP


SNDM FROM('x@xxxxxxxxx')

TO(('mymail@xxxxxxxxx' *N *TO)

('mycc@xxxxxxxxx *N *CC'))

FILE(QGPL/QTXTSRC) MBR(MAILDDT)

SUBJECT('tst')





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.