BookmarkSubscribeRSS Feed
pchappus
Obsidian | Level 7

Hi,

 

I've created a prompt where the user can choose between 2 options. I was wondering if there is a prompt option where I can give the user two prompts, and if they choose both it will run the code for both of them.

 

Thanks!

4 REPLIES 4
TomKari
Onyx | Level 15

First, I don't see any problem creating two prompts.

 

Second, could you then use the "Conditional Processing" facility to run whichever programs should be triggered by the prompts?

pchappus
Obsidian | Level 7

I have multiple prompts, that isn't the issue. One of the prompts has options X and Y. I want the program to run X and Y if they choose X and Y or just X if they choose X or just Y if they choose Y.

TomKari
Onyx | Level 15

Do you know what macro variables are being created by the prompts, and what their values are?

pchappus
Obsidian | Level 7

I created a loop in my code that would check to see how many there are and then determine what to do with the processes.

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