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
 

 

Email using JCL with High importance

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

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Tue Feb 14, 2012 8:26 am    Post subject: Email using JCL with High importance
Reply with quote

Hi,

Could someone help me in triggering an email with high importance using IEBGENER?

I used below code for the same and was able to trigger the email. However I was not aware of any command that can set the email with high importance.

Code:
HELO TBCBOS                                           
MAIL FROM:<abcdef@email.com>                     
RCPT TO:<abcdef@email.com>                       
DATA                                                 
FROM:<Error.mailemail.com.com>     
TO:<abcdef@email.com>                           
SUBJECT: 02/13/2012 - Errors found     
MIME-VERSION: 1.0                                     
CONTENT-TYPE:MULTIPART/MIXED;                         
     BOUNDARY="MAIL"                                 
                                                     
--MAIL                                               
CONTENT-TYPE:TEXT/PLAIN;                             
                                                     
Hi,           

Please check this, errors found.

--MAIL                                                               
CONTENT-TYPE:TEXT/PLAIN; NAME="Error_02/13/2012.txt             
CONTENT-DISPOSITION: ATTACHMENT; FILENAME="Error_02/13/2012.txt"
CONTENT-TRANSFER-ENCODING:7BIT
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Feb 14, 2012 8:29 am    Post subject: Reply to: Email using JCL with High importance
Reply with quote

Neither have I, but you might want to review the SMTP and/or MIME specifications in case there is one.
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Tue Feb 14, 2012 8:46 am    Post subject:
Reply with quote

Hi Superk,

Thanks for you fast response!!!

Could you please guid me where / how to review the SMTP or MIME specifications?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue Feb 14, 2012 9:40 am    Post subject:
Reply with quote

for SMTP or MIME specifications go HERE

and review only requires reading.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1491
Location: Chennai

PostPosted: Tue Feb 14, 2012 10:59 am    Post subject:
Reply with quote

Add IMPORTANCE : HIGH to your standard SMTP statements.

Code:
//MAILSTPC EXEC PGM=IEBGENER,COND=(4,LT)             
//SYSPRINT DD SYSOUT=*                               
//SYSUT1   DD *                                     
HELO SMTP                                           
MAIL FROM: <wells@wells.com>               
RCPT TO: <wells@wells.com>             
DATA                                                 
FROM:     <wells@wells.com>                 
TO:       <wells@wells.com>             
SUBJECT: setting importance in mail             
IMPORTANCE: HIGH                                     
MIME-VERSION: 1.0;                                   
CONTENT-TYPE: TEXT/RICH TEXT;                       
ITS VALENTINES DAY, AND IM HERE WRITING MAINFRAME CODE. FOREVER ALONE LVL OVER 2000
/*
//SYSUT2   DD SYSOUT=(B,SMTP)                     
//SYSIN    DD *                                     
/*
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Wed Feb 15, 2012 6:53 am    Post subject:
Reply with quote

Hi Vasanth,

Thats perfect solution, Its working as expected.

Thanks for your help!

You won't be alone for next valentines day... (I'll pray for you)...
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1491
Location: Chennai

PostPosted: Wed Feb 15, 2012 11:43 am    Post subject:
Reply with quote

I was just making a pun of dragonballZ :-)
Thanks anyway.
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 EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
No new posts ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


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