BookmarkSubscribeRSS Feed
Yennie
Calcite | Level 5
Hi people,

I am finding hard to understand the use of parameter in SAS Eguide. I know it allows a user to select certain values to be ran in stored process. However, I created parameter and ran the script, seriously, still couldn't figure out how it helps me stored process.

is there any helpful articles that really helps me understand the use of parameters? Also how to create parameters in proper way?

cheers,
Yennie
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
Here are a couple of scenarios for illustration purposes.

1) you work for a company and there are 100 business analysts. Every analyst is responsible for a different Product (or country or region or -something). Do you make 100 stored processes -- one for each analyst, or do you make 1 stored process with a parameter that allows each analyst to select -their- product? Part of the power of parameters in a stored process is that you can use the data itself to provide a parameter list in a drop down box -- so the analyst can just pick from a list.

2) You work for a company that does forecasting. The basic statistical analysis always uses the same STAT procedure -- the only thing that changes are some of the options that control the STAT procedure and perhaps the time period of data being analyzed. Do you make a stored process for every possible combination of options and dates, or make a stored process which shows the 'changeable' options for the STAT procedure and allows the analyst/forecaster to select the date range of the data??

If you perform a Google search on SAS stored processes and parameters, I'm sure you will find many user group papers that talk about how to set and use parameters.

Even if you do NOT use SAS Stored Processes, the Parameter Manager in SAS EG is a powerful tool which allows you to make your projects and tasks more flexible. Again, a Google search on Enterprise Guide and Parameter Manager may provide you with some user group papers on the subject.

SAS Stored Processes and EG parameters are both tapping into the underlying power of the SAS Macro facility. For an overall introduction to the SAS Macro facility, I find that this is a good paper:
http://www2.sas.com/proceedings/sugi28/056-28.pdf

cynthia

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
  • 632 views
  • 0 likes
  • 2 in conversation