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
 

 

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: 7932
Location: Bellevue, IA

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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts Define Alias for multiple Data sets u... sandy98669 JCL & VSAM 4 Fri May 27, 2016 1:07 pm


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