BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I would like to create a stored process from an Enterprise Guide project.
This stored process will be used in SAS Portal.

How can I define a selective output (summary table) based on a value from the start page in the portal.
Upon the value of this macrovariable a specific summary table should be used.

In plain SAS-code I can use macro processing to run a specific proc tabulate:

%macro presentation;

%if "&var." eq "A" %then %do;
proc tabulate ......
run;
%end;

%else %if "&var." eq "B" %then %do;
proc tabulate ......
run;
%end;

%mend;
%presentation;

Is this posible within Enterprise Guide towards a stored process ??
1 REPLY 1
ChrisHemedinger
Community Manager
In EG 4.1 you can use Project Parameters to create a parameter as a placeholder for a variable name in a task. (Tools->Parameter Manager, then define a new parameter of type Variable).

Most SAS tasks will then accept that parameter as a value you can assign in the task's roles page.

However, if you are looking to check for a condition and execute one set of PROC code versus another depending on the value of the condition, that's not something that EG will facilitate via point and click. But you certainly can write your SAS program in EG and then convert it to a stored process. You can even use project parameters to parameterize your program in EG, so that you are prompted for the condition values as you run it. The project parameters are then translated into stored process parameters automatically.

Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 546 views
  • 0 likes
  • 2 in conversation