The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
I am trying to run a standard "proc sgplot" from code that works in SAS but its not working in WPS. Am I missing something to get sgplot to work?
Hi Ilana,
Sorry for the late reply.
You should be able to use PROC SGPLOT so this problem may need further analysis.
We would be happy to review your code or log output and see if we can see why it's not working for you.
You can email dasupport@altair.com or post here.
Best Regards,
Nico
Hi Illana,
Using the SASHELP.CARS dataset, which is not shipped with WPS, you should be able to run PROC SGPLOT using the sample below. Also notice how WPS has a SAS7DBAT engine on the LIBNAME Statement.
%let win_path = c:\users\rbetancourt\desktop\ODS_Examples\data_output;
%let xl_file = graph_and_table.xlsx;
%let libref = c:\users\rbetancourt\desktop\ODS_examples\data_input;
libname cars sas7bdat "&libref";
ods excel file = "&win_path\&xl_file"
options(sheet_interval = "proc"
sheet_name = "cars_means");
/* tabular output */
<strong>proc</strong> <strong>means</strong> data = cars.cars;
var mpg_City mpg_Highway;
<strong>run</strong>;
/* add a graph */
ods graphics on / height = 4in width = 6in noborder;
ods excel options(sheet_interval = "proc"
sheet_name = "cars_sgplot");
title "Histogram for MPG";
<strong>proc</strong> <strong>sgplot</strong> data = cars.cars;
histogram mpg_City;
ods excel close;
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…