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





So I changed things up a bit and created a new combined file and an RPG to
read the 3 files into the combined file.
All is good except my CL reads the file and the only record that is on the
email is the last one it reads from the file.
So basically its over-writing each record on a read.
How do I set up the CL to put each record on a separate line in the MSG
body?

PGM
DCLF FILE(SAB16CBW) RCDFMT(*ALL)
DCL VAR(&MSG) TYPE(*CHAR) LEN(2000)
DCL VAR(&DATE8C) TYPE(*CHAR) LEN(8)
CHGVAR VAR(&DATE8C) VALUE('20180220')
/**************************************/
/* CREATE MESSAGE BODY */
/**************************************/
LOOP1: RCVF RCDFMT(SAB16CBR)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(EMAIL))
CHGVAR VAR(&MSG) VALUE('&N ' *CAT &COLMN1 *CAT &COLMN2
*CAT &COLMN3 *CAT +
&COLMN4 *CAT &COLMN5 *CAT &COLMN6 *CAT &COLMN7)
GOTO CMDLBL(LOOP1)
/**************************************/
/* Email */
/**************************************/
EMAIL:
ESEND/ESNDMAIL RECIPIENT(MICHAELLANGE@xxxxxxxxxx) SUBJECT(
'SAB16C: Daily VIS +
email') MSG(&MSG)
ENDPGM



Regards
Michael Lange
Loewen Windows
Steinbach, MB
204.326.6808 ext. 5148This e-mail message, including any attachments, is for the sole use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Loewen makes no warranty that this e-mail is error or virus free.
Please think green before printing this email.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.