I have an e mail that gets sent out with a link to the SAS report. Is there a way to say something like, "click here" and have that be the hyper link? My example is below...
filename outbox email;
put 'Your monthly report is now available on share point. Click (Ideally, I would like the word 'click' to be the hyper link) on the link provided and you will be taken to the Sharepoint site. The file is in the folder.';
put HERE IS WHERE I NORMALL HAVE THE WHOLE LONG LINK"';
put 'If you have any questions, please do not hesitate to contact me.';
Usually, when you send mail, the mail is sent using whatever settings SAS determines. So, for example, if your mail client is set to send mail in "plain text" then that is what is used for the mail content. If, on the other hand, the mail client is set to send mail as HTML content, then you could use a HTML <A> tag (Anchor tag) in the body of your mail.
For example, in regular HTML coding practice, when you want to create a hyperlink, you specify:
<a href="http://www.sas.com">Click to go to SAS</a>
And, in a regular HTML page, the words "Click to go to SAS" would be underlined and in blue (indicating a hyperlink) and the <a> tag would not be visible on the HTML page.
Some mail administrators disable the sending of HTML in the body of the email. So, whether you could use an Anchor tag in the body of your mail would be up to your mail administrators. The email engine does have a TYPE= option that allows you to specify TYPE="text/html" on the FILENAME statement, but I have noticed times when I specify a type of "text/html" and if my mail client is set to Plain text, it seems like the mail client setting is used and is not overridden by SAS.
One thing you can try is to just put your URL in the body of the email as one long link -- I know it doesn't look as nice as a hyperlink, but even in plain text files, sometimes a URL that begins with HTTP:// will be OK and clickable. If you want to explicitly use an <a> tag, then you will have to check and see 1) whether you mail administrators will even allow you to send HTML mail and then if they will 2) you'll have to make sure that you code the anchor tag correctly in the body of your mail.
put "Click on the link below to access the file";
put " ";
put " ";