<?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: SAS viya using variable name RESULT in proc fedsql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717809#M80142</link>
    <description>Ah cheers for that.. actually found the list of keywords that I somehow missed from the documentation yesterday &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=p0x0k1rlx0l7e4n1ptngog3ce4jp.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=p0x0k1rlx0l7e4n1ptngog3ce4jp.htm&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Feb 2021 08:54:09 GMT</pubDate>
    <dc:creator>Ruan</dc:creator>
    <dc:date>2021-02-09T08:54:09Z</dc:date>
    <item>
      <title>SAS viya using variable name RESULT in proc fedsql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717798#M80140</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to see, mostly out of curiosity, what the experts think of below and this is also my first post so hoping I get it right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So was recently asked by a colleague to help investigate why his&amp;nbsp;proc fedsql did not want to work. After some time playing around with the code I realised that the variable named "Result" was causing the Proc FedSQL to error. Changing the variable to anything other (except the word "value") on the same code seems to work fine. So just wondering is the words "Result" and "Value" reserved within the CASL language? I'm assuming it must be something along the lines if the Proc Fedsql converts the statements into CASL that it errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below the error message and some sudo code that does the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;82 proc fedsql sessref=auto;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: FEDSQL: Running on CAS due to "sessref".&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 select count(result)&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 from CASUSERHDFS.cars_test;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NOTE: Added action set 'fedsql'.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;action returned string actionset = fedsql&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: CAS action completed [OKAY]&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;FEDSQL: load of action set returned rc=00000000&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT color="#FF0000"&gt;ERROR: Syntax error at or near "result"&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT color="#FF0000"&gt;ERROR: The action stopped due to errors.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: The FedSQL action was not successful.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;FEDSQL: The fedsql.execDirect action returned rc=0x000003f4&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 quit;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cas auto;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;options casdatalimit=all msglevel=i;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;libname casuser cas caslib="CASUSERHDFS";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data casuser.cars_test;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;set sashelp.cars;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;result=horsepower/cylinders;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;proc fedsql sessref=auto;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;select count(make)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from CASUSERHDFS.cars_test;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;quit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;proc fedsql sessref=auto;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;select count(result)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from CASUSERHDFS.cars_test;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;quit;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 08:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717798#M80140</guid>
      <dc:creator>Ruan</dc:creator>
      <dc:date>2021-02-09T08:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS viya using variable name RESULT in proc fedsql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717801#M80141</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The following words are reserved as FedSQL language keywords and cannot be used as variable names or in any other way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FedSQL Reserved Words 'R' Alphabet&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;CODE class="xisDoc-variableValue"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;CODE class="xisDoc-variableValue"&gt;R&lt;/CODE&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RANK&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;READ&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;READS&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REAL&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RECHECK&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RECURSIVE&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REF&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REFERENCES&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REFERENCING&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_AVGX&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_AVGY&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_COUNT&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_INTERCEPT&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_R2&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_SLOPE&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_SXX&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_SXY&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REGR_SYY&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REINDEX&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RELATIVE&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RENAME&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="xisDoc-paragraph"&gt;REPLACE&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RESET&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RESTART&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RESTRICT&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RETURN&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RETURNS&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;REVOKE&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RIGHT&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;ROLLBACK&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;ROLLUP&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;ROW&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;ROWS&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;ROW_NUMBER&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;RULE&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 08:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717801#M80141</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-09T08:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS viya using variable name RESULT in proc fedsql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717809#M80142</link>
      <description>Ah cheers for that.. actually found the list of keywords that I somehow missed from the documentation yesterday &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=p0x0k1rlx0l7e4n1ptngog3ce4jp.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=p0x0k1rlx0l7e4n1ptngog3ce4jp.htm&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 08:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-viya-using-variable-name-RESULT-in-proc-fedsql/m-p/717809#M80142</guid>
      <dc:creator>Ruan</dc:creator>
      <dc:date>2021-02-09T08:54:09Z</dc:date>
    </item>
  </channel>
</rss>

