I'd suspect the 50 byte &email parm is getting truncated to 32 bytes... This is a common problem with issuing a CALL from the command line.
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Jim Waymire
Sent: Tuesday, October 16, 2007 12:00 PM
Subject: Send Email from the AS400 - quit working!
from: "Jim Franz" <franz400@xxxxxxxxxxxx>
subject: Re: Send Email from the AS400 - quit working!
can you show us the email address sent?
perhaps it is invalid address format?
If I use the value rather than passing a parm: I made a copy of this and
passed the 2nd and 3rd parm, but not the email address and it worked.
DCL VAR(&EMAIL) TYPE(*CHAR) LEN(50) +
DCL VAR(&SUBJECT) TYPE(*CHAR) LEN(20) +
DCL VAR(&MSG) TYPE(*CHAR) LEN(200) VALUE('This +
is a test from the sendtest cl')
Calling it manually and passing the parms, which has quit working!
call sndemail2 parm('jwaymire@xxxxxxxxxxxxxxxxxx' 'E-Mail2' 'Test from
The normal usage of this is called from a program and uses a file to get the
email addresses depending on the job.
This mailing list archive is Copyright 1997-2020 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