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

multiple attachments in one sasmail step


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 8700
Location: Dubuque, Iowa, USA

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

SAS version 9.2 code that I found on the SAS web site in under 2 minutes:
Code:
filename outbox email "[email protected]";

data _null_;   
   file outbox   
      to=("[email protected]" "[email protected]")   
         /* Overrides value in */     
         /* filename statement */   
      cc=("[email protected]" "[email protected]")   
      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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Multiple INSPECTS on a big size file COBOL Programming 6
No new posts SAS Step execution statistics All Other Mainframe Topics 0
No new posts Comment multiple lines in JCL for Tem... JCL & VSAM 4
Search our Forums:


Back to Top