BookmarkSubscribeRSS Feed
Cullima
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.

1 REPLY 1
Cullima
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):

<<root.STATION_NAME>>

or

prompt::<<STATION_NAME>

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 1 reply
  • 878 views
  • 1 like
  • 1 in conversation