<?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 NOPRINT option for proc tabulate exporting to excel file running in SAS management console in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/NOPRINT-option-for-proc-tabulate-exporting-to-excel-file-running/m-p/881547#M26312</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code which output a tabulate table to excel for me. It works fine when it run in SAS EG but when run through SAS management console I get insufficient access error. I believe I need to add noprint function as I had the same error when I used proc sql with count functions but proc tabulate doesn't seem to to have one. I have tried ods select none but this stop the tabulate table to export to excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;ods excel file="//file location/name.xslx"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;options(sheet_name="data");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PROC TABULATE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATA=WORK.test&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT=COMMA10.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OUT=WORK.STABSummaryTables2(LABEL="Test Table");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR var1 var2;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLASS var3 / ORDER=UNFORMATTED MISSING;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLASS var4 / ORDER=UNFORMATTED MISSING;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TABLE&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* ROW Statement */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;all = 'Total'&amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* COLUMN Statement */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var3&amp;nbsp; *(Var1 * Sum=' ' var2 * Sum=' ' ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/ BOX="Tablename";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In case it was something with the export file. I have delete the output before i run the code in SMC but still this doesn't work. Any help would be appriecated! Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 14:40:02 GMT</pubDate>
    <dc:creator>SYLC</dc:creator>
    <dc:date>2023-06-20T14:40:02Z</dc:date>
    <item>
      <title>NOPRINT option for proc tabulate exporting to excel file running in SAS management console</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/NOPRINT-option-for-proc-tabulate-exporting-to-excel-file-running/m-p/881547#M26312</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code which output a tabulate table to excel for me. It works fine when it run in SAS EG but when run through SAS management console I get insufficient access error. I believe I need to add noprint function as I had the same error when I used proc sql with count functions but proc tabulate doesn't seem to to have one. I have tried ods select none but this stop the tabulate table to export to excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;ods excel file="//file location/name.xslx"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;options(sheet_name="data");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PROC TABULATE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATA=WORK.test&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT=COMMA10.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OUT=WORK.STABSummaryTables2(LABEL="Test Table");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR var1 var2;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLASS var3 / ORDER=UNFORMATTED MISSING;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLASS var4 / ORDER=UNFORMATTED MISSING;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TABLE&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* ROW Statement */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;all = 'Total'&amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* COLUMN Statement */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var3&amp;nbsp; *(Var1 * Sum=' ' var2 * Sum=' ' ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/ BOX="Tablename";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In case it was something with the export file. I have delete the output before i run the code in SMC but still this doesn't work. Any help would be appriecated! Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 14:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/NOPRINT-option-for-proc-tabulate-exporting-to-excel-file-running/m-p/881547#M26312</guid>
      <dc:creator>SYLC</dc:creator>
      <dc:date>2023-06-20T14:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: NOPRINT option for proc tabulate exporting to excel file running in SAS management console</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/NOPRINT-option-for-proc-tabulate-exporting-to-excel-file-running/m-p/881560#M26313</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My guess is that the problem is write access to the location where you are trying to write the XLSX output file. OR, if your code is inside a stored process that you haven't modified the code to run on the Stored Process Server or the Workspace server (if it is a stored process) or you haven't modified the code to run in a SAS Studio job if you are using Viya and the CAS server. This is probably something that you need to consult with Tech Support about. The way you modify your code and define your folder for writing output will be different depending on whether you're using stored processes and the metadata server on the BI Platform or whether you're using code in SAS Studio on a Viya/CAS platform.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 16:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/NOPRINT-option-for-proc-tabulate-exporting-to-excel-file-running/m-p/881560#M26313</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-06-20T16:57:08Z</dc:date>
    </item>
  </channel>
</rss>

