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
Diamond | Level 26
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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1105 views
  • 0 likes
  • 3 in conversation