<?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 Query truncation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Query-truncation/m-p/62765#M13651</link>
    <description>Hi!&lt;BR /&gt;
&lt;BR /&gt;
I created a SAS file on the server but now when I am trying to run this SAS file , it says the query is truncated.&lt;BR /&gt;
However, if I see the actual SAS file the query is not truncated and looks perfect .  Any suggestions to fix this? Given below is the job log  &lt;BR /&gt;
35   rsubmit SAS1;&lt;BR /&gt;
NOTE: Remote submit to SAS1 commencing.&lt;BR /&gt;
293  %dbcon(teradata);&lt;BR /&gt;
&lt;BR /&gt;
DBCON - teradata macrovariable resolves to:&lt;BR /&gt;
teradata as teradata (user=XXXX password="XXXXXXXX" tdpid=grp2 mode='teradata' )&lt;BR /&gt;
&lt;BR /&gt;
294  option nosgen nomlogic nosource2 compress=yes;&lt;BR /&gt;
295  %inc "server name/test.sa_&amp;amp;dt..sas" ;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.43 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Truncated record.&lt;BR /&gt;
ERROR: Teradata prepare: Syntax error, expected something like an 'ON' keyword between the word 'c'&lt;BR /&gt;
       and ';'. SQL statement was: SELECT A.* FROM USER_WORK.table1 A INNER JOIN USER_work.table2 B ON A.ID = B.ID AND  INNER JOIN&lt;BR /&gt;
       user_wrk.table 3 c.&lt;BR /&gt;
&lt;BR /&gt;
My SAS file has the entire query in a single line? Will this cause truncation?</description>
    <pubDate>Wed, 11 Aug 2010 21:41:46 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-11T21:41:46Z</dc:date>
    <item>
      <title>Query truncation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-truncation/m-p/62765#M13651</link>
      <description>Hi!&lt;BR /&gt;
&lt;BR /&gt;
I created a SAS file on the server but now when I am trying to run this SAS file , it says the query is truncated.&lt;BR /&gt;
However, if I see the actual SAS file the query is not truncated and looks perfect .  Any suggestions to fix this? Given below is the job log  &lt;BR /&gt;
35   rsubmit SAS1;&lt;BR /&gt;
NOTE: Remote submit to SAS1 commencing.&lt;BR /&gt;
293  %dbcon(teradata);&lt;BR /&gt;
&lt;BR /&gt;
DBCON - teradata macrovariable resolves to:&lt;BR /&gt;
teradata as teradata (user=XXXX password="XXXXXXXX" tdpid=grp2 mode='teradata' )&lt;BR /&gt;
&lt;BR /&gt;
294  option nosgen nomlogic nosource2 compress=yes;&lt;BR /&gt;
295  %inc "server name/test.sa_&amp;amp;dt..sas" ;&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: SQL Statement used (Total process time):&lt;BR /&gt;
      real time           0.43 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Truncated record.&lt;BR /&gt;
ERROR: Teradata prepare: Syntax error, expected something like an 'ON' keyword between the word 'c'&lt;BR /&gt;
       and ';'. SQL statement was: SELECT A.* FROM USER_WORK.table1 A INNER JOIN USER_work.table2 B ON A.ID = B.ID AND  INNER JOIN&lt;BR /&gt;
       user_wrk.table 3 c.&lt;BR /&gt;
&lt;BR /&gt;
My SAS file has the entire query in a single line? Will this cause truncation?</description>
      <pubDate>Wed, 11 Aug 2010 21:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-truncation/m-p/62765#M13651</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-11T21:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query truncation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-truncation/m-p/62766#M13652</link>
      <description>Generally yes.  We can't tell without the code, but it looks like it might be a pass-through query.  In that case the line size limit of teradata is likely to come into play.&lt;BR /&gt;
&lt;BR /&gt;
You should check the teradata companion for SAS.

Message was edited by: Doc@Duke</description>
      <pubDate>Thu, 12 Aug 2010 02:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-truncation/m-p/62766#M13652</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-08-12T02:31:59Z</dc:date>
    </item>
  </channel>
</rss>

