BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Is it possible to prompt for parameters without using a query step? I want to prompt for parameters then use the parameters in a code node that runs a pass through sql query. I've been trying to figure this out for weeks.
4 REPLIES 4
deleted_user
Not applicable
Finally figured it out after weeks of searching. Right click code node and select properties. On the left you will see parameters. This seems to coordinate the code parameters with the parameters created in Parameter manager.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
BTW, the Google advanced search argument (taken directly from the OP SUBJECT) below yielded a SAS conference paper (link provided) and it specifically mentions the PARAMETERS tab:

eg Prompt for parameters without using query site:sas.com


Data on Demand with Enterprise Guide: A Cheap and Easy Approach to
Real-time Database Access
Richard F. Pless, Ovation Research Group a division of ICON Clinical
http://www2.sas.com/proceedings/forum2007/058-2007.pdf


Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
Thank you for the link, I had seen that one, however I am not finding the section in the paper that shows how to use parameters in a custom code object. I am curious if there is a better way of accomplishing this than the way I did it. It was not intuitive that you must define the parameters once in parameter manager then again in the code object.
RichardH_sas
SAS Employee
Bill, I would say the way you did it is the correct solution. Defining the prompt in the prompt manager makes sure that EG has the prompt available for use throughout the project. Getting those values used in the appropriate spot, and getting the appropriate prompt window, comes from associating the prompt with specific tasks, queries, or programs.

I agree it is a little work, but think about how much time you're saving down the road by getting the prompt rather than having to manually edit the code each time!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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