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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 1009 views
  • 0 likes
  • 3 in conversation