<?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: Implicit Sql Pass Through Behaviour in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329257#M73632</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14002"&gt;@pchegoor&lt;/a&gt;.That's a shame. My recent experiences with Tech Support are quite the opposite. My perception is they have improved significantly.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 00:39:45 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-02-02T00:39:45Z</dc:date>
    <item>
      <title>Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/328857#M73481</link>
      <description>&lt;P&gt;I&amp;nbsp;&amp;nbsp; have a couple&amp;nbsp; of&amp;nbsp; Issues I am observing&amp;nbsp; regarding Implicit&amp;nbsp; Sql Passthrough&amp;nbsp; in SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp; The&amp;nbsp; Option&amp;nbsp; NOIPASSTHRU&amp;nbsp;&amp;nbsp; on the PROC&amp;nbsp; SQL&amp;nbsp; Statement&amp;nbsp;&amp;nbsp; does not always DISABLE&amp;nbsp; Implicit&amp;nbsp; Pass&amp;nbsp; Through.&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp; Sometimes&amp;nbsp; even though the&amp;nbsp; Sql query is passed to the&amp;nbsp; RDBMS for Processing there is no Message in the Log&amp;nbsp; suggesting this&amp;nbsp; has occured.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; would like&amp;nbsp; to demonstrate&amp;nbsp; the above&amp;nbsp; using&amp;nbsp; a&amp;nbsp; Volatile Table&amp;nbsp; in Teradata&amp;nbsp;&amp;nbsp; loaded&amp;nbsp; with some&amp;nbsp; Sample Data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the Code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option  debug=DBMS_SELECT sastrace=',,,d'
sastraceloc=saslog no$stsuffix fullstimer ;

Title;

Libname _ALL_ Clear;

/* Set global connection for all tables. */
libname VOLTBL teradata user="Test" password="Test123" server="T_DEV" connection=global;

/* Create a volatile tables */
proc sql;
   connect to teradata(user="Test" password="Test123" server="T_DEV"  connection=global);

 execute (CREATE VOLATILE TABLE TEMP (PAT_ID CHAR(1),
								       Amt INT) 
            ON COMMIT PRESERVE ROWS) by teradata;

     execute (COMMIT WORK) by teradata;


   Disconnect from Teradata;
quit;

/*  Insert data  into one of the above  table  */

Proc sql;
    connect to teradata(user="Test" password="Test123" server="T_DEV"  connection=global);

    execute (INSERT INTO TEMP VALUES('A',100)) by teradata;
    execute (INSERT INTO TEMP VALUES('B',200)) by teradata;
    execute (INSERT INTO TEMP VALUES('C',300)) by teradata;
    execute (INSERT INTO TEMP VALUES('D',400)) by teradata;
    execute (INSERT INTO TEMP VALUES('E',500)) by teradata;
    execute (INSERT INTO TEMP VALUES('',600)) by teradata;
	execute (INSERT INTO TEMP VALUES(NULL,700)) by teradata;
	execute (INSERT INTO TEMP VALUES('F',800)) by teradata;
	execute (INSERT INTO TEMP VALUES(NULL,NULL)) by teradata;
    execute (COMMIT WORK) by teradata;
   Disconnect from Teradata;

Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now&amp;nbsp; that the Sample&amp;nbsp; Data&amp;nbsp; has been Created i&amp;nbsp; want to proceed&amp;nbsp; with the above&amp;nbsp; 2&amp;nbsp; Issues&amp;nbsp; i am observing .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First&amp;nbsp; I want to&amp;nbsp; demonstrate the&amp;nbsp; 2nd Issue&amp;nbsp; using the below&amp;nbsp; Code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Title1 '***** Result when generated Sql is passed to Teradata for Processing *****';

Proc Sql;


Select  *   from    VOLTBL.TEMP  where  PAT_ID is NULL;

Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This&amp;nbsp; is the Result :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG title="Image1.png" alt="Image1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7042i32DA90401FB78106/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This&amp;nbsp; is the SAS&amp;nbsp; Log :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;66         
67         
68         Title1 '***** Result when generated Sql is passed to Teradata for Processing *****';
69         
70         Proc Sql;
71         
72         
73         Select  *   from    VOLTBL.TEMP  where  PAT_ID is NULL;
 
TERADATA_12: Prepared: on connection 0
SELECT * FROM "TEMP"
 
4                                                          The SAS System                            12:40 Tuesday, January 31, 2017

TERADATA: SELECT * FROM "TEMP" 
TERADATA: trqacol- No casting. Raw row size=5, Casted size=9, CAST_OVERHEAD_MAXPERCENT=20%
 
TERADATA_13: Prepared: on connection 0
SELECT "PAT_ID","Amt" FROM "TEMP"  WHERE  ("PAT_ID" IS  NULL  )
 
TERADATA: SELECT "PAT_ID","Amt" FROM "TEMP"  WHERE  ("PAT_ID" IS  NULL  ) 
 
TERADATA_14: Executed: on connection 0
SELECT "PAT_ID","Amt" FROM "TEMP"  WHERE  ("PAT_ID" IS  NULL  )
 
TERADATA: trget - rows to fetch: 2
TERADATA: trforc: COMMIT WORK 
74         
75         Quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.02 seconds
      user cpu time       0.01 seconds
      system cpu time     0.01 seconds
      memory              5293.21k
      OS Memory           24484.00k
      Timestamp           01/31/2017 12:40:58 PM
      Step Count                        31  Switch Count  74
      Page Faults                       0
      Page Reclaims                     58
      Page Swaps                        0
      Voluntary Context Switches        250
      Involuntary Context Switches      1
      Block Input Operations            0
      Block Output Operations           0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now as you see from the above Log&amp;nbsp; there is&amp;nbsp; No Message&amp;nbsp; suggesting that the&amp;nbsp; Sql Query is being sent To Teradata&amp;nbsp; for Processing.&lt;/P&gt;
&lt;P&gt;I was expecting to see Messages&amp;nbsp; like this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;DEBUG: SQL Implicit Passthru stmt has been prepared successfully.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;DEBUG: SQL Implicit Passthru stmt used for fetching data.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ACCESS ENGINE: SQL statement was passed to the DBMS for fetching data.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know the Query was sent&amp;nbsp; to Teradata&amp;nbsp; for Processing&amp;nbsp; because ONLY&amp;nbsp; the&amp;nbsp; 2&amp;nbsp; records where the&amp;nbsp; value of PAT_ID&amp;nbsp; is NULL&amp;nbsp; is returned which is what&amp;nbsp; one would expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366ff"&gt;&lt;STRONG&gt;Question :&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt; So&amp;nbsp;&amp;nbsp; why are the above Messages not printed in the SAS Log?&amp;nbsp; Does this mean it is sometimes not printed even though&amp;nbsp; it is an Implicit Sql Through?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now&amp;nbsp; going back&amp;nbsp; to&amp;nbsp; the 1st&amp;nbsp; Issue .&amp;nbsp; I&amp;nbsp; am using the following Code .This time i have the Option NOIPASSTHRU&amp;nbsp; in the PROC SQL&amp;nbsp; Statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Title1 '***** Result when generated Sql is  passed to Teradata for Processing using NOIPASSTHRU Option  *****';

Proc Sql NOIPASSTHRU;


Select  *   from    VOLTBL.TEMP  where  PAT_ID is NULL;

Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the Result :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Image2.png" alt="Image2.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7043iB3FEB21005B69E25/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here&amp;nbsp; is the SAS Log :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;78         Title1 '***** Result when generated Sql is  passed to Teradata for Processing using NOIPASSTHRU Option  *****';
79         
80         Proc Sql NOIPASSTHRU;
81         
82         
83         Select  *   from    VOLTBL.TEMP  where  PAT_ID is NULL;
 
TERADATA_15: Prepared: on connection 0
SELECT * FROM "TEMP"
 
TERADATA: SELECT * FROM "TEMP" 
TERADATA: trqacol- No casting. Raw row size=5, Casted size=9, CAST_OVERHEAD_MAXPERCENT=20%
 
TERADATA_16: Prepared: on connection 0
SELECT "PAT_ID","Amt" FROM "TEMP"  WHERE  ("PAT_ID" IS  NULL  )
 
TERADATA: SELECT "PAT_ID","Amt" FROM "TEMP"  WHERE  ("PAT_ID" IS  NULL  ) 
 
TERADATA_17: Executed: on connection 0
SELECT "PAT_ID","Amt" FROM "TEMP"  WHERE  ("PAT_ID" IS  NULL  )
 
TERADATA: trget - rows to fetch: 2
TERADATA: trforc: COMMIT WORK 
84         
5                                                          The SAS System                            12:40 Tuesday, January 31, 2017

85         Quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.02 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              5278.93k
      OS Memory           24740.00k
      Timestamp           01/31/2017 12:40:58 PM
      Step Count                        32  Switch Count  74
      Page Faults                       0
      Page Reclaims                     40
      Page Swaps                        0
      Voluntary Context Switches        249
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now&amp;nbsp; if&amp;nbsp; you&amp;nbsp; observe&amp;nbsp; the presence of the NOIPASSTHRU&amp;nbsp; Option&amp;nbsp; does not make&amp;nbsp; a difference ie the&amp;nbsp; Implicit Pass through&amp;nbsp; is not disabled&amp;nbsp; and&amp;nbsp; as consequence the query is again sent to Teradata for processing&amp;nbsp; resulting&amp;nbsp; again in the Same Result as in the Previous Code&amp;nbsp; without this&amp;nbsp; Option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366ff"&gt;&lt;STRONG&gt;Question :&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt; So&amp;nbsp;&amp;nbsp;&amp;nbsp;does the Option NOIPASSTHRU&amp;nbsp; not always work as expected?&amp;nbsp; If yes, then when does it work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now&amp;nbsp; I want to&amp;nbsp; demonstrate a Final&amp;nbsp; Scenario&amp;nbsp; where&amp;nbsp; I&amp;nbsp; Force the&amp;nbsp; Processing to&amp;nbsp; take in the SAS Session&amp;nbsp; instead of&amp;nbsp; in&amp;nbsp; Teradata. This is&amp;nbsp; what&amp;nbsp; i&amp;nbsp; would have expected&amp;nbsp; with the NOIPASSTHRU&amp;nbsp; Option&amp;nbsp; as shown above .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here&amp;nbsp; is&amp;nbsp; Code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname VOLTBL1 teradata user="test" password="test123" server="T_DEV" connection=global direct_sql=nowhere;

Title1 '***** Result when generated Sql is passed to Teradata for Processing using DIRECT_SQL=NOWHERE  Option *****';

Proc Sql;


Select  *   from    VOLTBL1.TEMP  where  PAT_ID is NULL;

Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the&amp;nbsp; Result :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Image3.png" alt="Image3.png" src="https://communities.sas.com/t5/image/serverpage/image-id/7044i02E3B9FBE60E6954/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the&amp;nbsp; SAS Log :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;24         libname VOLTBL1 teradata user="test" password=XXXXXX server="T_DEV" connection=global direct_sql=nowhere;
NOTE: Libref VOLTBL1 was successfully assigned as follows: 
      Engine:        TERADATA 
      Physical Name: "T_DEV"
25         
26         Title1 '***** Result when generated Sql is passed to Teradata for Processing using DIRECT_SQL=NOWHERE  Option *****';
27         
28         Proc Sql;
29         
30         
31         Select  *   from    VOLTBL1.TEMP  where  PAT_ID is NULL;
 
TERADATA_21: Prepared: on connection 0
SELECT * FROM "TEMP"
 
TERADATA: SELECT * FROM "TEMP" 
ACCESS ENGINE:  The value of the DIRECT_SQL libname option is set to NOWHERE. The WHERE clause will not be passed to the DBMS for 
processing. 
TERADATA: trqacol- No casting. Raw row size=5, Casted size=9, CAST_OVERHEAD_MAXPERCENT=20%
 
TERADATA_22: Prepared: on connection 0
SELECT "PAT_ID","Amt" FROM "TEMP" 
 
TERADATA: SELECT "PAT_ID","Amt" FROM "TEMP"  
 
TERADATA_23: Executed: on connection 0
SELECT "PAT_ID","Amt" FROM "TEMP" 
 
TERADATA: trget - rows to fetch: 9
TERADATA: trforc: COMMIT WORK 
32         
33         Quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.03 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              5277.93k
      OS Memory           24484.00k
      Timestamp           01/31/2017 01:33:24 PM
      Step Count                        34  Switch Count  78
      Page Faults                       0
      Page Reclaims                     135
      Page Swaps                        0
      Voluntary Context Switches        268
      Involuntary Context Switches      4
      Block Input Operations            0
      Block Output Operations           0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now&amp;nbsp; as seen above&amp;nbsp; you see&amp;nbsp; that&amp;nbsp; there&amp;nbsp; is&amp;nbsp; Message&amp;nbsp; in the Log&amp;nbsp; suggesting the&amp;nbsp;Query was not passed to Teradata&amp;nbsp; but&amp;nbsp; instead the processing occured in the SAS Session&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ACCESS ENGINE: The value of the DIRECT_SQL libname option is set to NOWHERE. The WHERE clause will not be passed to the DBMS for processing.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also&amp;nbsp; if&amp;nbsp; you see the Result now&amp;nbsp; has&amp;nbsp; 3 records ie&amp;nbsp; 2 Records&amp;nbsp; where the PAT_ID is NULL&amp;nbsp; and one&amp;nbsp; additional&amp;nbsp; Record where PAT_ID= ' '&amp;nbsp;&amp;nbsp; and since in SAS&amp;nbsp;&amp;nbsp; both&amp;nbsp; a NULL&amp;nbsp; value&amp;nbsp; and a&amp;nbsp;missing value&amp;nbsp; are the treated the same&amp;nbsp; we&amp;nbsp; thus&amp;nbsp; have 3 Records in the Result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can&amp;nbsp; someone&amp;nbsp; please shed some&amp;nbsp; light&amp;nbsp; on the above&amp;nbsp; Behaviour of Implicit&amp;nbsp; Passthrough&amp;nbsp; in SAS?&amp;nbsp; I&amp;nbsp; want&amp;nbsp; to make sure&amp;nbsp; i understand&amp;nbsp; the&amp;nbsp; Behaviour well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 21:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/328857#M73481</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2017-01-31T21:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/328913#M73506</link>
      <description>&lt;P&gt;Not sure about your main question, but when I was reading your code it reminded me of something I read last week while troubleshooting some SQL passthrough issues, which is that SAS handles requests to&amp;nbsp;temporary/volatile tables differently than regular tables in some cases. &amp;nbsp;Not sure if that's what's going on here, but thought it may be worth looking into, or at least trying your code using permanent tables to see if the behavior is any different.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/328913#M73506</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-01-31T22:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329194#M73607</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56496"&gt;@Sven111&lt;/a&gt;&amp;nbsp;&amp;nbsp; When&amp;nbsp; i&amp;nbsp; use&amp;nbsp; Implicit Sql against a Regular&amp;nbsp; Teradata&amp;nbsp; View/Table&amp;nbsp;&amp;nbsp; i&amp;nbsp; do see the following Message :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DEBUG: SQL Implicit Passthru stmt has been prepared successfully.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DEBUG: SQL Implicit Passthru stmt used for fetching data.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ACCESS ENGINE: SQL statement was passed to the DBMS for fetching data.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But&amp;nbsp; then again the Option NOIPASSTHRU&amp;nbsp; does not work to&amp;nbsp; disable the Implicit Pass Through . In this case though&amp;nbsp; i&amp;nbsp; do&amp;nbsp; not see the above Messages&amp;nbsp; in the Log&amp;nbsp; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very&amp;nbsp; Strange to see such a Behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; Just wish the Messages were consistent even with&amp;nbsp; a Volatile&amp;nbsp; Table&amp;nbsp; and&amp;nbsp; also&amp;nbsp;the Option &amp;nbsp;NOIPASSTHRU&amp;nbsp; would&amp;nbsp; work as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 20:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329194#M73607</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2017-02-01T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329195#M73608</link>
      <description>&lt;P&gt;I suggest that SAS Tech Support would be your best option to progress this.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 20:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329195#M73608</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-02-01T20:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329254#M73630</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS&amp;nbsp; Tech&amp;nbsp; Support&amp;nbsp; very&amp;nbsp; Often&amp;nbsp; do not&amp;nbsp; answer&amp;nbsp; such&amp;nbsp; questions in a satisfactory Manner&amp;nbsp; and i feel&amp;nbsp; that oflate the&amp;nbsp; Support standard&amp;nbsp; has&amp;nbsp;&amp;nbsp;diminished &amp;nbsp;&amp;nbsp;and therefore for such&amp;nbsp; questions&amp;nbsp; i usually come&amp;nbsp; to such&amp;nbsp; Forums where i can find&amp;nbsp; seasoned SAS professionals&amp;nbsp; who may provide&amp;nbsp; more Insight into such Questions .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One&amp;nbsp; thing I&amp;nbsp; do&amp;nbsp;see is&amp;nbsp; if&amp;nbsp; the Run the&amp;nbsp; following&amp;nbsp; code&amp;nbsp; with the keyword&amp;nbsp; &lt;STRONG&gt;distinct&lt;/STRONG&gt; in the&amp;nbsp; PROC SQL Query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Title1 '***** Result when generated Sql is passed to Teradata for Processing using distinct keyword *****'; 

Proc Sql;

Select  distinct  *   from    VOLTBL.TEMP  where   PAT_ID is NULL;

Quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; do see the Implicit&amp;nbsp; Passthrough&amp;nbsp; Message in the&amp;nbsp; SAS&amp;nbsp; Log&amp;nbsp; as highlighted&amp;nbsp; below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DEBUG: SQL Implicit Passthru stmt has been prepared successfully.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEBUG: SQL Implicit Passthru stmt used for fetching data.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ACCESS ENGINE: SQL statement was passed to the DBMS for fetching data. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;67         Title1 '***** Result when generated Sql is passed to Teradata for Processing using distinct keyword *****';
68         
69         Proc Sql;
70         
71         Select  distinct  *   from    VOLTBL.TEMP  where   PAT_ID is NULL;
 
TERADATA_12: Prepared: on connection 0
SELECT * FROM "TEMP"
 
TERADATA: SELECT * FROM "TEMP" 
 
TERADATA_13: Prepared: on connection 0

 select distinct TXT_1."PAT_ID", TXT_1."Amt" from "TEMP" TXT_1 where TXT_1."PAT_ID" is null
 
TERADATA:  select distinct TXT_1."PAT_ID", TXT_1."Amt" from "TEMP" TXT_1 where TXT_1."PAT_ID" is null 
&lt;FONT color="#000000"&gt;&lt;STRONG&gt;DEBUG: SQL Implicit Passthru stmt has been prepared successfully&lt;/STRONG&gt;.&lt;/FONT&gt;
TERADATA: trforc: COMMIT WORK 
&lt;STRONG&gt;&lt;FONT color="#000000"&gt;DEBUG: SQL Implicit Passthru stmt used for fetching data.&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;ACCESS ENGINE:  SQL statement was passed to the DBMS for fetching data.&lt;/FONT&gt;&lt;/STRONG&gt; 
 
TERADATA_14: Executed: on connection 0
 select distinct TXT_1."PAT_ID", TXT_1."Amt" from "TEMP" TXT_1 where TXT_1."PAT_ID" is null
 
TERADATA: trget - rows to fetch: 2
TERADATA: trforc: COMMIT WORK 
72         Quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.03 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              5279.00k
      OS Memory           25252.00k
      Timestamp           02/01/2017 05:58:51 PM
      Step Count                        138  Switch Count  72
      Page Faults                       0
      Page Reclaims                     145
      Page Swaps                        0
      Voluntary Context Switches        244
      Involuntary Context Switches      3
      Block Input Operations            0
      Block Output Operations           0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Result from above is as expected :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7064i97360171379D55D5/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Image4.PNG" title="Image4.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the&amp;nbsp; above&amp;nbsp; behaviour&amp;nbsp; we can infer that&amp;nbsp; the presence of distinct keyword&amp;nbsp; causes&amp;nbsp; the Implicit&amp;nbsp; Passthrough&amp;nbsp;Message to&amp;nbsp; be printed in the SAS Log .&amp;nbsp; The&amp;nbsp; Output Result is still&amp;nbsp; the same as without this keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366ff"&gt;&lt;STRONG&gt;Question:&amp;nbsp; &lt;/STRONG&gt;&lt;FONT color="#000000"&gt;Does this Mean that without the&amp;nbsp; &lt;STRONG&gt;Distinct&lt;/STRONG&gt; keyword the&amp;nbsp; sql query is still passed&amp;nbsp; to the&amp;nbsp; Teradata even though there is no explicit messages&amp;nbsp; stating this has occured ? Or does this mean that without the &lt;STRONG&gt;distinct&amp;nbsp; &lt;/STRONG&gt;the Sql query is passed to the Teradata by some other means&amp;nbsp; other than Implicit Passthrough?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 01:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329254#M73630</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2017-02-02T01:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329257#M73632</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14002"&gt;@pchegoor&lt;/a&gt;.That's a shame. My recent experiences with Tech Support are quite the opposite. My perception is they have improved significantly.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 00:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/329257#M73632</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-02-02T00:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Sql Pass Through Behaviour in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/353028#M82373</link>
      <description>&lt;P&gt;did you get any reply back from SAS? I have same question as I think that message is not printed in log even implicit pass through happened but just want to sure.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 22:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Implicit-Sql-Pass-Through-Behaviour-in-SAS/m-p/353028#M82373</guid>
      <dc:creator>nkm123</dc:creator>
      <dc:date>2017-04-24T22:25:59Z</dc:date>
    </item>
  </channel>
</rss>

