Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sending mails using jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kavitha_cts

New User


Joined: 09 Feb 2006
Posts: 3
Location: Chennai

PostPosted: Thu Feb 09, 2006 9:59 am    Post subject: Sending mails using jcl
Reply with quote

I want to know how to send mails using jcl. I want the detailed one.
Back to top
View user's profile Send private message

rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Feb 09, 2006 10:10 am    Post subject:
Reply with quote

Hi kavitha,

try this...i got this from the forum only...dont ask me explanation.....

//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO NCJESA00

MAIL FROM: (find out from your system guys what must go here)

RCPT TO:<your@email.address>
DATA
FROM: sending@email.address
TO: name
SUBJECT: Notepad file
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="BOUNDRY1"
--BOUNDRY1
CONTENT-TYPE: TEXT/PLAIN; CHARSET="US-ASCII"
CONTENT-TRANSFER-ENCODING: 7BIT

Hallo
This is your Notepad file
--BOUNDRY1
CONTENT-TYPE: APPLICATION/OCTET-STREAM;
CONTENT-DISPOSITION:ATTACHMENT;FILENAME="WHATEVER.TXT"

// DD DISP=SHR,DSN=data.set.name
// DD *
--BOUNDRY1


Thanks,
Rajesh
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Feb 09, 2006 10:25 am    Post subject: Re: Sending mails using jcl
Reply with quote

Hi Kavitha

For more details please go thru following link. You will get all the details you want.

http://www.planetmvs.com/mvsmail/

Hope it helps

Regards
Rupesh
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Feb 09, 2006 3:42 pm    Post subject:
Reply with quote

Here is another link u can refer:

http://ibmmainframes.com/viewtopic.php?t=3783&highlight=mail
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts How to sending system service request... lind sh IMS DB/DC 5 Sun Apr 10, 2016 12:02 am
No new posts Issue in sending zip file as mail att... ajithajt JCL & VSAM 8 Thu Apr 07, 2016 9:11 am
No new posts Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm
No new posts Sending IMS (DBCTL) command and get r... lind sh CICS 2 Tue Mar 01, 2016 2:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us