BookmarkSubscribeRSS Feed
Jwcris
Calcite | Level 5

Hello!

I'm working on a SAS Enterprise Guide Stored Process - using the Wizards. This will be handed off to a user who doesn't want to code, so will need to be super simple. I have four variables. Those four variables need to have a single default value. There should be only one variable to one value. User is allowed to specify additional values, and results are output to a secondary table (the user input does not change default values).

Here is an example of the defualt data that I'm working with:

%let CPU = 1000;

%let Inv = 20000;

%let Hra = 112;

%let Wind = 16;

data mylib.default_parms;

length Var_name $18. Value 6.;

Var_name = 'CPU'; Value = "&CPU";

output;

Var_name = 'Inv Level'; Value = "&Inv";

output;

Var_Name = 'Heart Rate Average'; Value = "&Hra";

output;

Var_name = 'Wind Speed'; Value = "&Wind";

output;

run;

 

The current default values are approx. 80% of "max-value", and the range is [ 0 : "max-value" ]. A user can request that the default value be changed to 75%. So on the backend we would (alter the default_parms table created above with a) change to the let statements. Wind Speed would be 15 instead of 16. This will then automatically display the new default value (not the difficult part). I have only been able to achieved this by using dynamic lists. 

However, here is where the issue is, when using dynamic lists the CPU drop down should only have 1000 displayed. Instead the drop down is including all values that qualify within range - i.e. 112 for Heart Rates and 16 for Wind Speed both display. I have only been able to achieve this by using static lists.

Is this within the prompt wizards and Stored Process wizards capabilities? Can I specify the single default dynamic values with no additional drop down values?

I have attached an example of my prompt settings.

 

Thank you,

Jace


Stored_Process.jpg
1 REPLY 1
tomrvincent
Rhodochrosite | Level 12
You could put an 'x' in front of the CPU values beyond 1,000...that would filter them out because of the 'allow only integer values' condition you selected.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 1112 views
  • 0 likes
  • 2 in conversation