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: 4649
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: 4649
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 Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am


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