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 Profile Log in to check your private messages Log in
 
multiple attachments in one sasmail step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
mightyscorpashwin

New User


Joined: 04 Apr 2007
Posts: 7
Location: tn

PostPosted: Mon Feb 09, 2009 3:11 pm    Post subject: multiple attachments in one sasmail step
Reply with quote

Hi,

Can you please suggest me some way to attach multiple files in one email step(sasmail)..

Thanks..
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Mon Feb 09, 2009 5:45 pm    Post subject:
Reply with quote

SAS version 9.2 code that I found on the SAS web site in under 2 minutes:
Code:
filename outbox email "ron@acme.com";

data _null_;   
   file outbox   
      to=("ron@acme.com" "humberto@acme.com")   
         /* Overrides value in */     
         /* filename statement */   
      cc=("miguel@acme.com" "loren@acme.com")   
      subject="My SAS Output"   
      attach=("C:\sas\results.out" "C:\sas\code.sas") 
   ;   
   put 'Folks,';   
   put 'Attached is my output from the SAS';   
   put 'program I ran last night.';     
   put 'It worked great!';
run;
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 4 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

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