<?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 syntax error when running a .sas program on unix server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588013#M167988</link>
    <description>&lt;P&gt;HI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps someone can help.&amp;nbsp; I have a large .sas program that generates an error at this particular part of the code when I run directly on our unix server, but when I run the same piece of code in EG, I have no issue and my output creates as expected.&amp;nbsp; So.. I'm assuming that this statement is interpreted differently as .egp.. and therefor I need to use some sort of unix syntax equivilant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC SQL;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CREATE TABLE work.CustRespChanPlatALLGFGB AS &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECT DISTINCT&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;compress(t1.Source_ID || put(t1.'WEB ORDER ID'n,best.)) as SrcAndWebNbr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,t1.'ORDER #'n as OrderNumber&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,t1.'MASTER CHANNEL'n as MasterChannel&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ADS.CUST_RESP_CHAN_PLAT_ALLGFGB t1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;QUIT; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;these are the errors I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Column WEB ORDER ID could not be found in the table/view identified with the correlation name T1.&lt;BR /&gt;ERROR: Column ORDER # could not be found in the table/view identified with the correlation name T1.&lt;BR /&gt;ERROR: Column MASTER CHANNEL could not be found in the table/view identified with the correlation name T1.&lt;BR /&gt;ERROR: Numeric format BEST in PUT function requires a numeric argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the source table specs so that you can see what the input table contains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or advice would be truly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 20:20:46 GMT</pubDate>
    <dc:creator>cnilsen</dc:creator>
    <dc:date>2019-09-11T20:20:46Z</dc:date>
    <item>
      <title>syntax error when running a .sas program on unix server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588013#M167988</link>
      <description>&lt;P&gt;HI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps someone can help.&amp;nbsp; I have a large .sas program that generates an error at this particular part of the code when I run directly on our unix server, but when I run the same piece of code in EG, I have no issue and my output creates as expected.&amp;nbsp; So.. I'm assuming that this statement is interpreted differently as .egp.. and therefor I need to use some sort of unix syntax equivilant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC SQL;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CREATE TABLE work.CustRespChanPlatALLGFGB AS &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECT DISTINCT&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;compress(t1.Source_ID || put(t1.'WEB ORDER ID'n,best.)) as SrcAndWebNbr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,t1.'ORDER #'n as OrderNumber&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,t1.'MASTER CHANNEL'n as MasterChannel&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ADS.CUST_RESP_CHAN_PLAT_ALLGFGB t1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;QUIT; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;these are the errors I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Column WEB ORDER ID could not be found in the table/view identified with the correlation name T1.&lt;BR /&gt;ERROR: Column ORDER # could not be found in the table/view identified with the correlation name T1.&lt;BR /&gt;ERROR: Column MASTER CHANNEL could not be found in the table/view identified with the correlation name T1.&lt;BR /&gt;ERROR: Numeric format BEST in PUT function requires a numeric argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the source table specs so that you can see what the input table contains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or advice would be truly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588013#M167988</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2019-09-11T20:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error when running a .sas program on unix server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588021#M167993</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;OPTIONS VALIDVARNAME=ANY;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588021#M167993</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-09-11T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error when running a .sas program on unix server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588336#M168131</link>
      <description>That worked out.. Thanks so much!</description>
      <pubDate>Thu, 12 Sep 2019 18:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-when-running-a-sas-program-on-unix-server/m-p/588336#M168131</guid>
      <dc:creator>cnilsen</dc:creator>
      <dc:date>2019-09-12T18:18:01Z</dc:date>
    </item>
  </channel>
</rss>

