I am not sure how it works or it possible or not but will give a chance to explore myself.
I have the Idea how to do hyperlinks for webpage or folder paths in rtf using SAS. Bu I am curious to know is hyperlinking the the email is possible? email is from outlook , if we using url how we can get it?
2. Extension to first question, lets say I have an email in the middle of the string then can we make that as hyperlink? instead of whole string?
Image shows the clickable hyperlinks on email. Just wrote word to show.
Thanks for your ideas.
I think you can do it with this technique from this SAS Note: Usage Note 24051: In ODS RTF, how can I generate HTML hyperlinks?
But instead of "https:" links, you would use "mailto:"
filename out temp;
ods rtf file=out;
proc report data=sashelp.class;
column name height;
define name / order style(header)={url="mailto:teacher@class.com"};
run;
ods rtf close;
Example output in Word:
I think you can do it with this technique from this SAS Note: Usage Note 24051: In ODS RTF, how can I generate HTML hyperlinks?
But instead of "https:" links, you would use "mailto:"
filename out temp;
ods rtf file=out;
proc report data=sashelp.class;
column name height;
define name / order style(header)={url="mailto:teacher@class.com"};
run;
ods rtf close;
Example output in Word:
Yiyee..🧐 I learned something new .Thank you @ChrisHemedinger . It resolved my first question. How about lets say how we can do it in footnote and in middle of a strings.
Ex: Footnote1 " Please email Chris at chris@sas.com.
In the above I want to hyper link the just email text instead of whole string ( if I use style option isn't it hyperlink whole string?
data have;
have='Please email Chris at (*ESC*){style [color=blue url="mailto:chris@sas.com"] chris@sas.com} .';
run;
ods rtf file='c:\temp\temp.rtf';
proc report data=have nowd style={outputwidth=80%};
run;
ods rtf close;
You didn't learn it from my previous code yet !
Thank you @Ksharp . yes I learned using the style option from your previous code. But I was trying for email where I was not sure what to use instead of 'http' in url option, I was trying with 'mail' which didn't work, so I got learned from @ChrisHemedinger and you the option should be ' mailto" , so I was able to get what I was expecting. Thank you for your time.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.