BookmarkSubscribeRSS Feed
Yennie
Calcite | Level 5
Hi All,

I am currently writting my own store process code on SAS9.2 developer. However, I am unsure of how to write the codings for parameters. Say for example, I have a parameter for Fruits which allow users to select between Apples, Orange and Strawberry etc. I understand that I may need to write a macro script etc... however not sure how to go about it.

Hoping someone can help me out!

Cheers.
Yennie
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
These papers were written for SAS 9.1.3, however, the basic concepts are the same.
http://www2.sas.com/proceedings/forum2008/024-2008.pdf
http://www2.sas.com/proceedings/forum2007/021-2007.pdf

And this is an EG stored process paper:
http://www2.sas.com/proceedings/forum2007/218-2007.pdf

cynthia
Vince_SAS
Rhodochrosite | Level 12
Here are a few pages from the documentation that you may find helpful:

Using Input Parameters
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/a003152642.htm

The Program Component and The Input Component
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/a003172097.htm

The section on the program component shows how to use a parameter named REGIONNAME in your SAS code.

Vince DelGobbo
SAS R&D

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!

How to Concatenate Values

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.

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
  • 2 replies
  • 709 views
  • 0 likes
  • 3 in conversation