Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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: 8201
Location: Dubuque, Iowa, 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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us