BookmarkSubscribeRSS Feed
paulrockliffe
Obsidian | Level 7

I'm using a Prompt with a Code Node to let a user select a table to run the code on.  I'd like the user to be able to select from a list of all of the tables in the Project, with the Prompt automatically picking up the values to offer to the user.  My code is splitting a table up into a number of smaller tables and will be used across a wide range of projects.

 

Is this possible?

 

I was thinking that there may be a table within SASHELP that contains that information, but I can't find it.  Alternative methods gratefully received.

 

As a follow-on question, if the above is possible I would like to be able to set a second prompt that lets you select one of the columns from the selected table.  I think I can do this using cascading prompts, but again any pointers gratefully received.

 

Thanks!

1 REPLY 1
tomrvincent
Rhodochrosite | Level 12
Load all the tablenames into a metadata table before kicking off the project.

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
  • 1551 views
  • 0 likes
  • 2 in conversation