@Hopes wrote:
Hi everyone,
I forgot to mention that when I run the code, it generates the report without any problem. However, I coded the report in SAS to be shared with internal people via email, along with a link that allows them to access the report saved in an internal folder. When I click on the link, I see the issue with the title. I think it could be an Outlook issue rather than SAS, which is another potential cause. Here is an example of the SAS code for the email:
Since the code following the above has no Title statement you might need to tell us what part of the code shown contains your "title".
If you haven't worked with SAS very long you may not have learned that TITLE and FOOTNOTE statements persist in a given session until changed. So if a previous unrelated program has a TITLE "Some title text"; then that title will appear in all output following. You would use a simple TITLE; to clear all of the title text following.
Best practice when posting code is to paste the text into a text or code box opened on the forum using the </> or "running man" icon that appears above the message window. Code pasted into the main message window will be formatted by the forum software and may result in artifacts that change the behavior of the code when copy/pasted into a SAS session for testing. The box also helps visually separate the text discussion of the problem from the code. Log text should go into a text box as well.
I will be a bit pedantic and say that your first code does not actually show the code you ran, only the definition of a macro. Statements prior to the macro execution may be the cause.
It might also help to specifically state which "title" text you do not want to appear.
The commented out code in the macro including ODS PDF might indicate as well that you are generating a PDF or some other ODS destination output as well. At which point options like GTITLE/NOGTITLE and GFOOTNOTE/NOGFOOTNOTE might come into play.
... View more