Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us