Thank you so much for your prompt reply. The construc sends it correctly and gives the name of the text attachment. But it concatenates the 2 different files. But from my code I can see why but don't know how to do it differently. Do not need to send 2 emails but one email with 2 attachements. My code....
//IDCAMS08 EXEC PGM=IDCAMS
//*
//IF1 DD *
HELO JOBTRAC
MAIL FROM:<ABC@ANYWHERE.ORG>
RCPT TO:<XYZ@ANYWHERE.ORG>
DATA
FROM:ABC
TO:
XYZ@ANYWHERE.ORG SUBJECT: REPORTS
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;CHARSET=US-ASCII
CONTENT-DISPOSITION: ATTACHMENT; FILENAME="REPORT.TXT"
/*
//*
//OF1 DD DSN=WS.TDOC.ACS.EMAIL.CONSTRUC,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(200,(1,1),RLSE),AVGREC=K,
// RECFM=VB,LRECL=200
//*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
REPRO INFILE(IF1) OUTFILE(OF1)
//*
//*-------------------------------------------------------------------
//* SEND REPORTS EMAIL
//*-------------------------------------------------------------------
//*
//IEBGEN09 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=WS.TDOC.ACS.EMAIL.CONSTRUC,
// DISP=SHR
// DD DSN=WS.TSTW.ACS.COA.REPORT,
// DISP=SHR
// DD DSN=WS.TSTW.ACS.NIXIE.REPORT,
// DISP=SHR
//SYSUT2 DD SYSOUT=(9,SMTP)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY