AS/400 fans only ' How to send a DB2 file per Email as CSV attachment
#IBMiSample A simple CMD and CLP to send a DB2 file as CSV attachment. /************************************/ SNDCSV.CMD CMD PROMPT('Send DB2 file as CSV attachm.') /* COMMAND PROCESSING PROGRAM IS: SNDCSVCL */ PARM KWD(SNDFIL) TYPE(*CHAR) LEN(10) MIN(1) PROMPT('DB2 + file to send as CSV') PARM KWD(LIBR00) TYPE(*CHAR) LEN(10) PROMPT('Library') + DFT(*LIBL) PARM KWD(MAIL00) TYPE(*CHAR) LEN(50) MIN(1) PROMPT(' + Email destination address') PARM KWD(SUBJCT) TYPE(*CHAR) LEN(100) MIN(1) PROMPT(' + Email subject') PARM KWD(BODY00) TYPE(*CHAR) LEN(500) MIN(1) PROMPT(' + Email body') /************************************/ Compile