<?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: using tagattr with sql in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861869#M26203</link>
    <description>&lt;P&gt;Try it an see.&lt;/P&gt;
&lt;P&gt;You would have to make sure that the output was directed to an ODS EXCEL file to see.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 23:37:37 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-03-01T23:37:37Z</dc:date>
    <item>
      <title>using tagattr with sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861860#M26202</link>
      <description>&lt;P&gt;Can I format Excel output from an sql procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;select count(x) as count_num style={tagattr='format:#,##0'}&lt;/P&gt;&lt;P&gt;from y;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 22:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861860#M26202</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2023-03-01T22:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: using tagattr with sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861869#M26203</link>
      <description>&lt;P&gt;Try it an see.&lt;/P&gt;
&lt;P&gt;You would have to make sure that the output was directed to an ODS EXCEL file to see.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 23:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861869#M26203</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-01T23:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: using tagattr with sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861872#M26204</link>
      <description>I'd also recommend just trying a comma format and seeing if that worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 01 Mar 2023 23:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861872#M26204</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-03-01T23:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: using tagattr with sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861874#M26205</link>
      <description>&lt;P&gt;It gives me an error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;30 ods excel file="S:\HC\private\Temp\temp.xlsx"&lt;BR /&gt;31 options (embedded_titles='yes' embedded_footnotes='yes' sheet_name="Info"&lt;BR /&gt;32 sheet_interval='none');&lt;BR /&gt;33&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.Y has 1 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.25 seconds&lt;BR /&gt;cpu time 0.11 seconds&lt;BR /&gt;&lt;BR /&gt;34 Proc sql;&lt;/P&gt;&lt;P&gt;35 select count(x) as count_num style={tagattr='format:#,##0'}&lt;BR /&gt;_____&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, ',', AS, FORMAT, FROM, INFORMAT, INTO, LABEL, LEN,&lt;BR /&gt;LENGTH, TRANSCODE.&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;36 from y;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;37 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;2 The SAS System 19:20 Wednesday, March 1, 2023&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;38&lt;BR /&gt;39 ods excel close;&lt;BR /&gt;NOTE: Writing EXCEL file: S:\HC\private\Temp\temp.xlsx&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 00:24:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861874#M26205</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2023-03-02T00:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: using tagattr with sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861876#M26206</link>
      <description>&lt;P&gt;I don't think STYLE is a valid option on a SELECT statement. PROC SQL isn't designed to do any more than simple reporting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just add a PROC REPORT or similar reporting PROC after your PROC SQL step creates the required table to report on.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 00:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861876#M26206</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-02T00:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: using tagattr with sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861917#M26207</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/9248"&gt;@Batman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It gives me an error message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;30 ods excel file="S:\HC\private\Temp\temp.xlsx"&lt;BR /&gt;31 options (embedded_titles='yes' embedded_footnotes='yes' sheet_name="Info"&lt;BR /&gt;32 sheet_interval='none');&lt;BR /&gt;33&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.Y has 1 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.25 seconds&lt;BR /&gt;cpu time 0.11 seconds&lt;BR /&gt;&lt;BR /&gt;34 Proc sql;&lt;/P&gt;
&lt;P&gt;35 select count(x) as count_num style={tagattr='format:#,##0'}&lt;BR /&gt;_____&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, ',', AS, FORMAT, FROM, INFORMAT, INTO, LABEL, LEN,&lt;BR /&gt;LENGTH, TRANSCODE.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;36 from y;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There's your answer. STYLE= in SQL is not allowed.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 11:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/using-tagattr-with-sql/m-p/861917#M26207</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-02T11:30:49Z</dc:date>
    </item>
  </channel>
</rss>

