Hi Guys,
Suppose I have below location sales reports so I want sent sales report by respective location using proc report procedure
Area_Location:
Please post usable example data and the code you tried so far.
What do you mean by "sent"?
@BrahmanandaRao wrote:
My question is how to sent mails report respective location wise using proc report procedure
So, do you have code sending one mail? If not start with that task, the documentation of the filename-statement tells you all you need to know to send a mail. For the larger task, you need a variable in the data identifying the location.
data sales;
length zip $ 5 cty $ 8 var $ 10;
input zip $ cty $ var $ sales;
label zip="Zip Code"
cty="County"
var="Variety"
sales="Monthly Sales";
datalines;
52423 Scott Merlot 186.
52423 Scott Chardonnay 156.61
52423 Scott Zinfandel 35.5
52423 Scott Merlot 55.3
52388 Scott Merlot 122.89
52388 Scott Chardonnay 78.22
52388 Scott Zinfandel 15.4
52200 Adams Merlot 385.51
52200 Adams Chardonnay 246
52200 Adams Zinfandel 151.1
52200 Adams Chardonnay 76.24
52199 Adams Merlot 233.03
52199 Adams Chardonnay 185.22
52199 Adams Zinfandel 95.84
;
run;
proc report data=sales headline headskip;
title 'Grouped Report';
column cty zip var sales;
define cty /group width =6 'Country/Name';
define zip /group ;
define var/group order=freq descending ;
define sales/analysis sum format=6.2 width=10 ;
run;
Please give solution for this report procedure how to send email respective cites
Where are the email addresses stored, and how do you send a single mail?
"adam" and "scott" are positively NOT valid email addresses, so this is not possible.
Concur with @andreas_lds
Please post the code for a single report sent in a single mail.
Also include the code you use to read that csv into SAS.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.