View previous topic :: View next topic
|
Author |
Message |
soumita_28
New User
Joined: 07 Feb 2007 Posts: 1 Location: India
|
|
|
|
Hi,
I want to send an an attachment of an e-mail to be sent from Mainframe. I know how to send an e-mail from Mainframe. But my question is whether I can attach a document while e-mailing? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Both of you might want to review the Internet Specifications for MIME (Multipurpose Internet Mail Extensions), RFC1341 protocol.
Here is a good starting point, Getting started with MIME. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
mkk157, in another post you mentioned SAS. If you have SAS, it will do all of the SMTP and MIME encoding processes for you, with a relatively few lines of code. |
|
Back to top |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
Hi,
The below code will send thel file to the concern destination through Mainframes.
Code: |
//Jobcard
//PKZIP01 EXEC PGM=PKZIP,REGION=2M,TIME=(50,00)
//**************************************
//* THIS STEP WILL ZIP THE OUTPUT FILE
//**************************************
//*
//STEPLIB DD DSN=SYS1.PKZIP.LOADLIB,DISP=SHR
//INFILE DD DSN='your output file with RECFM U',DISP=SHR
//*The DS coded against outfile has to be in RECFM FB
//OUTFILE DD DSN='yourid.zip.data',DISP=SHR
//SYSIN DD *
-INDD(INFILE)
-ARCHOUTDD(OUTFILE)
-METHOD(SUPERFAST)
//SYSPRINT DD SYSOUT=(,)
//SYSOUT DD SYSOUT=(,)
//SYSUDUMP DD SYSOUT=(,)
//*
//XMIT01 EXEC PGM=IKJEFT01
//SYSPROC DD DSN=SYSUSER.TSO.COMMON.CLIST,DISP=SHR
//*Not sure all shops have the same DS coded in SYSPROC
//REPORT DD DSN = 'yourid.zip.data',DISP=SHR
//*
//SYSTSPRT DD SYSOUT=(,)
//*
//SYSTSIN DD *
%XMITIP (to mail id) -
SUBJECT 'TEST MAIL' -
FROM (your mail id) -
FORMAT BIN/ZIP -
FILEDD (REPORT)
/*
//* |
Please let me know if you face any problems. |
|
Back to top |
|
|
|