A variable name can consist of a maximum of 32 characters, and valid SAS names cannot consist of the characters necessary for URLs.
You might be able to fit a URL in a variable label.
What are you trying to achieve?
Hi @NASEER
You can specify the hyperlink in a style option in the DEFINE statement as below:
proc report data=sashelp.class;
column name;
define name / display style(header)={url='https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Assign-hyperlink-on-variable-names/m-p/641104'};
run;
Best,
Where to you want the link? On the column header? On on the value of the variable?
If on the vlaue of the variable does the link depend on the value of the variable?
If the latter you probably need to create a format that converts the value into the link and use the STYLE option to set the url to the formatted value. Although with PROC REPORT you can also use a compute block. See this earlier answer. https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Clickable-external-hyperlink/td-p/49...
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.