Page 1 of 1

Attachament File by Jcl

PostPosted: Sun Mar 30, 2008 11:16 pm
by lestmen
Hello to all guys
I have to write telnet comands to send email by jcl with file attachment (eg. text file)
could someone help me with some example ?
thank you in andvance
Sergio

Re: Attachament File by Jcl

PostPosted: Mon Mar 31, 2008 2:06 am
by dick scherrer
Hello,

I have to write telnet comands to send email
I suspect that you won't use telnet in jcl. . .

There are multiple ways to send an e-mail from a batch job (jcl). I'd suppgest you talk with the system support or network people an ask how to do this on your system.

Following is one simple way to send an e-mail:

//*=========================================
//**  SENDS E-MAIL DURING EXCEPTIONS              **
//*=========================================
//SENDNOTE EXEC PGM=IEBGENER,COND=(99,NE,STEP00X)  - or whatever works for you
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2   DD SYSOUT=(B,SMTP)
//SYSUT1   DD DSN=LIBNAME(MWMAILHR),DISP=SHR   -  e-mail "header" info
//         DD DSN=NEWFILENAME(+1),DISP=SHR
//         DD DSN=LIBNAME(MWMAILTR),DISP=SHR        -  e-mail "trailer" info
//*

Re: Attachament File by Jcl

PostPosted: Mon Mar 31, 2008 3:33 pm
by arunprasad.k
Search GOOGLE with XMITIP.

Arun.

Re: Attachament File by Jcl

PostPosted: Mon Mar 31, 2008 5:40 pm
by MrSpock

Re: Attachament File by Jcl

PostPosted: Mon Mar 31, 2008 10:34 pm
by lestmen
i have not to send a e-mail, the problem is with a file
i want send a file where i will see it like in Outlook so in different section,
and not exploded it in Body Section.