IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sending mails using jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 463

PostPosted: Thu Feb 09, 2006 10:25 am
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
Reply with quote

Here is another link u can refer:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts How to append Previous date into a S... JCL & VSAM 2
No new posts Pack to Unpack conversion for sending... COBOL Programming 13
No new posts Connnect Direct Sending Zip file from... All Other Mainframe Topics 3
No new posts Need Help on sending email by includi... JCL & VSAM 9
Search our Forums:

Back to Top