What I am trying to do is use a control on a visual to manually assign a variable that a SAS program can reference before a different report is opened.
is that possible? Can a button or drop down be used to store a macro variable somewhere that can be used by either a SAS program or a data plan?
I do not mean using a button or drop down to assign a parameter to be used by a visual. It needs to be used by a program or data plan.
The easiest way to accomplish this is to create an action from the VA object that links to a SAS Job. For example, below I have a list table. When I click on the actions, I can link to a URL.
When adding the URL, paste in the URL for your job execution (http://YourVAServer.com/SASJobExecution). You then have the option to add a parameter. The parameter will be tacked on at the end of your URL, so in your SAS code for the job, you can just reference the parameter like a normal macro variable.
Feeding a value into SAS code is done with user prompts in stored processes.
Stored Process is supposed to be available in the object menu under "Other", but is not present in my installation. Is there some other way to access a stored process via button or drop down object or assign a macro execution through a control on a visual or other object?
Which version of Visual Analytics are you using?
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
The easiest way to accomplish this is to create an action from the VA object that links to a SAS Job. For example, below I have a list table. When I click on the actions, I can link to a URL.
When adding the URL, paste in the URL for your job execution (http://YourVAServer.com/SASJobExecution). You then have the option to add a parameter. The parameter will be tacked on at the end of your URL, so in your SAS code for the job, you can just reference the parameter like a normal macro variable.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.