Getting Started with SAS Viya Copilot for SAS Visual Analytics
Recent Library Articles
Turn data into insights faster with AI-powered summaries, translations, and more. This post covers how SAS Visual Analytics leverages copilot and walks through its capabilities and interface, best practices for writing prompts, as well as some tips on responsible use.
Already a SAS Viya user? Then you know you’ve got a wealth of capabilities at your fingertips. We’ll explore those together, giving you access to all the insights you’ll need. Join us on December 10 at 11 a.m. ET.
The current version 14.0.7015 has reached End of Life (EOL) and is no longer supported by Microsoft. As part of the remediation, the component will need to be upgraded to a supported version or removed if it is no longer required. Could you please verify whether any applications or services related to SAS can have dependencies on the Microsoft Access Database Engine? If no dependencies are identified, we can proceed with the remediation and upgrade.
... View more
SAS OnDemand for Academics: In the program below, the output from PROC SGMAP is empty. The ‘Results’ window from the program below only has output from PROC GPLOT but not from the two PROC SGMAP steps. --------------------------- data temp01; input latitude longitude; cards; 60 0 50 10 ; proc gplot data=temp01; plot latitude*longitude; run; proc sgmap plotdata=temp01; openstreetmap; scatter x=longitude y=latitude / markerattrs=(symbol=circlefilled size=8); run; proc sgmap plotdata=temp01; esrimap url=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer; scatter x=longitude y=latitude / markerattrs=(symbol=circlefilled size=8); run;
... View more
I open SAS.
I submit a macro (just submit it, so nothing happens except it puts the macro into memory). A line in the macro points to a formats library.
I call the macro, so the guts of the macro runs.
When the macro runs it creates a dataset. After running the macro I do a PROC FREQ on that dataset. All the formats are applied correctly.
Then I call the macro again. I do not submit the macro itself again, rather I just call (run) it. I change nothing and I do nothing else. All I do is call the macro a second time.
Then I do that same PROC FREQ mentioned above and this time some...not all, but some...of the formats are not applied.
So the 1st time I run the PROC FREQ I see all words (the formatted values) instead of their underlying numbers.
And the 2nd time I run the PROC FREQ I still see mostly words (the formatted values), but for some of them I see their underlying numbers instead.
And every subsequent time I run it I see the mostly words but some underlying numbers instead.
IOW, it works properly after I open a new SAS session and run it for the first time. And it doesn't work properly every subsequent time I run it.
Any idea?
... View more
Hello,
I'm working on mapping close to 9,000 latitude and longitude points on a United States map. The code below show my code to achieve plotting of these X/Y on a US map. The issue is that some states only have a couple of dots and to preserve our users anonymity I need to use choropleth in situations where the count of address points is less than 10 in that state. Is it possible to have both X/Y points and choropleth on the same map?
I based my code below on this SAS support page that works with zip codes:
https://support.sas.com/kb/42/426.html
City_Coordinates
{
ID 8
City $40
State 8
X 8
Y 8
}
data longlat;
set work.city_coordinates ;
x=atan(1)/45*longitude;
y=atan(1)/45*latitude;
x=-x;
length state 5.;
run;
data anno;
set longlat;
retain xsys ysys '2' function 'label' size .75 flag 1 when 'a';
style='special';
text='M';
color='depk';
output;
run;
data states alaska hawaii pr;
set maps.states;
select;
when (state=2) output alaska;
when (state=15) output hawaii;
when (state=72) output pr;
otherwise output states;
end;
run;
data stateszip alzip hizip przip;
set anno;
select;
when (state=2) output alzip;
when (state=15) output hizip;
when (state=72) output przip;
otherwise output stateszip;
end;
run;
data states;
set states stateszip;
run;
proc gproject data=states out=stproj;
id state;
run;
data alaska;
set alaska alzip;
run;
proc gproject data=alaska out=akproj;
id state;
run;
data hawaii;
set hawaii hizip;
run;
proc gproject data=hawaii out=hiproj;
id state;
run;
data pr;
set pr przip;
run;
proc gproject data=pr out=prproj;
id state;
run;
/* Alaska coordinates */
data akproj(drop=x y);
set akproj;
if density < 2;
newx=(x-.55)*.50;
newy=(y-.35)*.50;
run;
/* Hawaii coordinates */
data hiproj(drop=x y);
set hiproj;
newx=x-.12;
newy=y-.20;
run;
/* Puerto Rico coordinates */
data prproj(drop=x y);
set prproj;
newx=(x+.315);
newy=(y-.24);
run;
/* Combine all of the projected data sets */
data all;
set stproj akproj(rename=(newx=x newy=y))
hiproj(rename=(newx=x newy=y))
prproj(rename=(newx=x newy=y));
run;
data map dot;
set all;
if flag=1 then output dot;
else output map;
run;
pattern1 v=me c=grp r=50;
title1 "Addresses in US" ;
title2 ;
proc gmap data=longlat map=map all;
id state;
choro state / anno=dot nolegend;
run;
quit;
Would the changes I need to make happen on proc gmap?
Thank you
... View more
In this post, we’ll demonstrate the second of the three ways to schedule a pipeline to run daily. In our previous post SAS Automated Pipeline Part 2 we showed how to download the scoring code for a champion model and then use the score code to make predictions on new data in Model Studio.
We demonstrate building an end-to-end pipeline, selecting the champion model. We then download our score code to build out a single ETL pipeline to make predictions on new data. In this demonstration, we will show the second way to automate the pipeline for scheduling runtime execution with minimum human intervention. By utilizing the built-in SAS Environment Manager scheduler, or SAS Workflow Manager, to trigger the pipeline to run based on a time we schedule.
... View more