Hi everyone, could you please help me with this issue? I want to access the TABLE_OPTIONS variable from the Program tab inside the HTML tab.
As you can see, this is the value of the TABLE_OPTIONS variable that was printed after I clicked the Run button:
You have a dataset named TABLE_LIST with a variable named TABLE_NAME that you want to use to control the HTML selector named TABLE.
Here is a SAS help page that shows how to do this for the dataset named SASHELP.CARS and the variable named MAKE.
Is this a Job definition in SAS Viya?
I doubt that HTML itself could ask SAS to provide the current value of a macro variable. Are you asking how to copy and paste the text you wrote in the log into the HTML tab so you can save that static text as part of the Job definition?
If not I would look at the demo jobs that SAS has provided that show how to drive an HTML selector from the contents of a dataset.
You have a dataset named TABLE_LIST with a variable named TABLE_NAME that you want to use to control the HTML selector named TABLE.
Here is a SAS help page that shows how to do this for the dataset named SASHELP.CARS and the variable named MAKE.
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →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.
Ready to level-up your skills? Choose your own adventure.