View previous topic :: View next topic
|
Author |
Message |
Skss
New User
Joined: 16 Feb 2010 Posts: 46 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Skss
New User
Joined: 16 Feb 2010 Posts: 46 Location: India
|
|
|
|
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 |
|
|
Skss
New User
Joined: 16 Feb 2010 Posts: 46 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|