Hi,
I'm using prompts to define some variables to use in a SAS EG project. I managed to configure them to show on every program I need.
One of those prompts ('camp') is a text where I list a number of IDs separated by spaces that will then be used as input for a macro function.
I sometimes change the values of the macro variable 'camp' using code on a program but when I run other program that uses the same prompt, the default value it shows is the value I entered and not the value stored in the macro variable. Is there a way to change the default value of the prompt when I change the macro variable value using code?
Thanks,
RN
I don't think so. The prompt sets the initial value of the macro variable, but the macro variable does not set the initial value of the prompt. If there is a way I've never seen it.
sure. set it as a %global variable and, after you change the value, the next time you run a program that prompts for it you'll see the new value.
I don't think that's correct. The value in the prompt is what was most recently set in the prompt, it does not get the value from a global macro variable.
I do it regularly...it works just fine. You just can't set the value before the prompt screen comes up the first time.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.