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: 8055
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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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