Yes sure, as many people face this issue, it would be certainly helpful.
Below is the job.
There are lot of other things that you can do with XMITIP. Like sending only specific pages of your report or sending report based on KEYVAL etc.
You can master XMITIP just by following instructions in the manual.
This is really good, sweet and short manual on XMITIP,mentioned below is the link and the code.
Hope this helps http://www.lbdsoftware.com/XMITIP-Guide.pdf
//MYJOB001 JOB (@),'ZIP',
/*ROUTE XEQ PKZIP
//PSTP070 EXEC PGM=IKJEFT1B,
//SYSEXEC DD DSN=(Please check your shop standards for this)
//STEPLIB DD DSN=(Please provide proper loadlib here)
//SYSTERM DD DUMMY
//MSGFILE DD DSN=XJNDSP.MAIL.BODY.NOV27,DISP=SHR
//ATTACHM DD DSN=XJNDSP.DAILY.REPORT.NOV27,DISP=SHR
//SYSTSIN DD DSN=XJNDSP.PROD.DATALIB(NEWMEM),DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
Contents of SYSTSIN datalib are as follows:
%XMITIP ("Firstname1 Lastname1" <Firstname1_Lastname1@abc.com>, -
"Firstname2 Lastname2" <Firstname2_Lastname2@abc.com>) - (**** This is TO list)
MSGDD MSGFILE - (**** This file contains body of your mail)
FILEDD ATTACHM -
FILENAME (DCV.ZIP) -
CC ("Firstname3 Lastname3" <Firstname3_Lastname3@abc.com>, -
"Firstname4 Lastname4" <Firstname4_Lastname4@abc.com>) -
FORMAT (ZIP/DCV.TXT) -
SUBJECT 'Daily Charge Volume for &DATE' -
FROM "Firstname5 Lastname5" <Firstname5_Lastname5@abc.com> -
ZIPMETHOD NORMAL -