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!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 755 views
  • 0 likes
  • 3 in conversation