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

E-mailing an Attachment from Mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
soumita_28

New User


Joined: 07 Feb 2007
Posts: 1
Location: India

PostPosted: Wed Feb 07, 2007 3:44 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Feb 07, 2007 4:23 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Feb 07, 2007 4:29 pm
Reply with quote

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
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Wed Feb 07, 2007 7:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top