BookmarkSubscribeRSS Feed
Calcite | Level 5

Is there a way to use a prompted value created in IMS within an expression for another data item

For example I have created a prompt in IMS called station_name, however, if I try to reference "&station_name" within an expression for a data item the output i get is "&station_name" rather than what is entered in response to the prompt.

I have implemented a workaround, creating the prompts in a stored process and then associating the SP with the Map and referencing them in exactly the way above which works fine.  However, this means the SP is intrinisically linked to the Map, wheras I do not want the same filters applied to every WRS report which uses it.

I find it very diffcult to believe that this cannot be done within IMS alone, as it should be basic functionality.

Assistance would be greatly appreciated.

Calcite | Level 5

Have since answered my own question.

to use prompt value in data item reference as follows (for &station_name prompt described above):






Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1 like
  • 1 in conversation