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

Problem in sending appended text via email


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Skss

New User


Joined: 16 Feb 2010
Posts: 46
Location: India

PostPosted: Mon Jan 23, 2012 3:55 pm
Reply with quote

Hi All,

I have a requirement of sending an email in which I have to append the records of my output file in the email. I do not want the output file to go as an attachment with the email.

I have a sample JCL with IKJEFT1B which sends email with attachement.
Here is my sample code
Code:

//STEP07   EXEC PGM=IKJEFT1B,DYNAMNBR=50
//SYSEXEC  DD DISP=SHR,DSN=ISPF.WHPL.SYSPROC
//SYSTSIN  DD DSN=SYSP.CA7.OVRLIB(EMAILMF),DISP=SHR
//EMAILMSG DD *
PLEASE FIND THE BELOW RECORDS
//EMAILFIL DD DSN=TB@XXXX.XXX.OUTPUT,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*


I also used IEBGENER but did not receive any email even though the job never failed.

Please suggest me a solution which will help me to send an email with the appended text.

Thank you,
Skss
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 23, 2012 5:20 pm
Reply with quote

Since what you have posted is completely and totally specific to your site, only someone working at your site will be able to help you. Talk to your coworkers, team leader, or site support group for assistance.

If you had posted something useful -- such as the details of what is in SYSP.CA7.OVRLIB(EMAILMF) -- we probably could have made some suggestions. But with what you gave us, all we can do is refer you to your site.
Back to top
View user's profile Send private message
Skss

New User


Joined: 16 Feb 2010
Posts: 46
Location: India

PostPosted: Mon Jan 23, 2012 5:31 pm
Reply with quote

The control card contains the below information

Code:

%XMITIP (email1@xyz.COM -
         email2@xyz.COM   -
         email3@xyz.COM ) +
        FILEDD EMAILFIL +
        FROM CA7MONITOR@COR1 +
        FORMAT TXT +
        MSGT '***********************************' +
        MSGT '* Alert message                                    *' +
        MSGT '* please act fast                                    *' +
        MSGT '***********************************' +
        SUBJECT 'XXX job MONITOR'


As I said, this control card is sending email with an attachment.
But I want the EMAILFIL to be appended with the message

Please let me know if you need further information
Back to top
View user's profile Send private message
Skss

New User


Joined: 16 Feb 2010
Posts: 46
Location: India

PostPosted: Mon Jan 23, 2012 6:16 pm
Reply with quote

I am looking for an alternate approch which will help me to append the text along with the body of the email.

Appreciate your response!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 23, 2012 6:35 pm
Reply with quote

Since I don't use XMITIP, I cannot help you with it.

You can also set up and use a straight SMTP batch job to generate an email. The specifics of what is needed vary slightly by site, so you absolutely MUST contact someone at your site to get help setting it up correctly.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jan 23, 2012 6:44 pm
Reply with quote

what about reading XMITIP manual/documentation
available for example here ...
www.lbdsoftware.com/XMITIP-Guide.pdf
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts TEXT-TO-PDF Compuware & Other Tools 1
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
Search our Forums:

Back to Top