BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
GioiAce
Fluorite | Level 6

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.

GioiAce_0-1772183979649.jpeg

GioiAce_4-1772184047614.png

As you can see, this is the value of the TABLE_OPTIONS variable that was printed after I clicked the Run button:

 

GioiAce_6-1772184461535.png

 



 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

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.

 

https://communities.sas.com/t5/SAS-Communities-Library/All-the-Above-Building-a-Multi-Selection-HTML...

 

 

 

View solution in original post

4 REPLIES 4
Tom
Super User Tom
Super User

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.

 

GioiAce
Fluorite | Level 6
Hi Tom,
I want to retrieve the value of the variable TABLE_OPTIONS and pass it to an HTML Tab so that it can be rendered as a drop-down list for the user to select options.
Tom
Super User Tom
Super User

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.

 

https://communities.sas.com/t5/SAS-Communities-Library/All-the-Above-Building-a-Multi-Selection-HTML...

 

 

 

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 526 views
  • 1 like
  • 2 in conversation