Okay, the problem is that I have to send an e-mail with a subject line and a message in the body. But when I run my job it sends two e-mails and I only want one. Here's my JCL:
FILENAME OUTBOX EMAIL
TO=('person@msn.com')
SUBJECT='email test'
CT='TEXT/HTML';
*----------------------------;
DATA _NULL_;
FILE OUTBOX;
PUT '!EM_SUBJECT! email test';
PUT 'message in the body of email';
*----------------------------;
ODS HTML BODY=OUTBOX
STYLE=MINIMAL
RS=NONE;
ODS HTML CLOSE;
/*
I've tried it using the e-mail address on the filename statement, and using the PUT statement is the only way I know to put a message in the body of the e-mail. But when I do this it produces two e-mails. So what can I do to only send one e-mail that will have both a subject and a body?