Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

E-mailing an Attachment from Mainframe

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: E-mailing an Attachment from Mainframe
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

Moderator Team Head


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

PostPosted: Wed Feb 07, 2007 4:23 pm    Post subject: Re: E-mailing an Attachment from Mainframe
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

Moderator Team Head


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

PostPosted: Wed Feb 07, 2007 4:29 pm    Post subject: Re: E-mailing an Attachment from Mainframe
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: 413
Location: Colarado, US

PostPosted: Wed Feb 07, 2007 7:31 pm    Post subject: Re: E-mailing an Attachment from Mainframe
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.    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Admin Openings with CTS enikhilk Mainframe Jobs 0 Tue Sep 13, 2016 10:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us