|
View previous topic :: View next topic
|
| Author |
Message |
varun
New User

Joined: 02 Mar 2005 Posts: 11 Location: USA
|
|
|
|
hi all,
Can any one help me in having the output dataset to be send as an attachment(Note pad) to the outlook mail.
Note:
1. I do not want to use FTP in this regard.
2.My shop does not support XMITIP.
3.All the data in the dataset should go to the attachement without any data loss.
thanks in advance. |
|
| Back to top |
|
 |
donevin
New User
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
|
|
|
|
Here is the job I use in our shop. You have to add job statement on top.
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO NCJESA00
MAIL FROM:<[email protected]> (find out from your system guys what must go here)
RCPT TO:<[email protected]>
DATA
FROM: [email protected]
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 |
|
| Back to top |
|
 |
Rupesh.Kothari
Member of the Month

Joined: 27 Apr 2005 Posts: 463
|
|
| Back to top |
|
 |
|
|