Attachament File by Jcl



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Attachament File by Jcl

Postby lestmen » Sun Mar 30, 2008 11:16 pm

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
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Attachament File by Jcl

 

Re: Attachament File by Jcl

Postby dick scherrer » Mon Mar 31, 2008 2:06 am

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
//*
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Attachament File by Jcl

Postby arunprasad.k » Mon Mar 31, 2008 3:33 pm

Search GOOGLE with XMITIP.

Arun.
arunprasad.k
 
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Attachament File by Jcl

Postby MrSpock » Mon Mar 31, 2008 5:40 pm

User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Attachament File by Jcl

Postby lestmen » Mon Mar 31, 2008 10:34 pm

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.
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post