<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ODS EXCEL adds SAS user name in generated excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876892#M346406</link>
    <description>&lt;P&gt;Any chance you have a Title and Footnote that are generating the username?&amp;nbsp; If you add:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1  ;
footnote1 ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the code to clear titles and footnotes does that solve the problem?&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 12:58:21 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-05-22T12:58:21Z</dc:date>
    <item>
      <title>ODS EXCEL adds SAS user name in generated excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876274#M346234</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to generate an excel file with ODS EXCEL and I added 3 lines at the beginning of the file using proc odstext; Everything works fine except that the user sas name is added twice in the generated excel. Once at the beginning before the proc odstext and once before starting the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea to avoid inserting the user sas name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS EXCEL FILE=exprt&lt;/P&gt;&lt;P&gt;options(sheet_name="sheetname"&lt;BR /&gt;sheet_interval='none'&lt;BR /&gt;embedded_titles='yes'&lt;BR /&gt;autofilter='1-11'&lt;BR /&gt;FLOW="TABLES"&lt;BR /&gt;);&lt;BR /&gt;proc odstext;&lt;BR /&gt;p "Title1" / style=[color=#003366 font_weight=bold];&lt;BR /&gt;p "Title2 %sysfunc(UPCASE(%sysfunc(compress(&amp;amp;Date)))) %sysfunc(year("&amp;amp;Date."d))" / style=[color=#003366 font_weight=bold];&lt;BR /&gt;p "Title3" ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 16:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876274#M346234</guid>
      <dc:creator>emma_madrid</dc:creator>
      <dc:date>2023-05-17T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL adds SAS user name in generated excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876890#M346405</link>
      <description>&lt;P&gt;Running the code you provided here does not recreate the problem for me.&amp;nbsp; I suspect the userID is being inserted by some of the other code. Look for a reference to &amp;amp;SYSUSERID - this is the macro variable that contains the username of the person or system user executing the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 12:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876890#M346405</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-05-22T12:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL adds SAS user name in generated excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876892#M346406</link>
      <description>&lt;P&gt;Any chance you have a Title and Footnote that are generating the username?&amp;nbsp; If you add:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1  ;
footnote1 ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before the code to clear titles and footnotes does that solve the problem?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 12:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/876892#M346406</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-22T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL adds SAS user name in generated excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/877202#M346533</link>
      <description>&lt;P&gt;Thanks for the clue. I checked the code, but there is no reference to &amp;amp;SYSUSERID.&lt;/P&gt;&lt;P&gt;I also noticed it happens when the SAS program is executed in LINUX, not when i execute in EG.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/877202#M346533</guid>
      <dc:creator>emma_madrid</dc:creator>
      <dc:date>2023-05-24T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL adds SAS user name in generated excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/877259#M346570</link>
      <description>&lt;P&gt;Did you try adding:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
footnote;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;immediately before the PROC ODSTEXT step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run code via EG, you're probably running SAS on linux.&amp;nbsp; When you say the problem only happens on Linux, how are you running that code?&amp;nbsp; Are you batch submitting on linux?&amp;nbsp; It's possible your SAS session has a different autoexec or other config setting that is creating titles/footnotes automatically.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 12:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-adds-SAS-user-name-in-generated-excel-file/m-p/877259#M346570</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-24T12:29:57Z</dc:date>
    </item>
  </channel>
</rss>

