<?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: Macro within SAS/Access Pass-thru in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136352#M1991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax you have is for explicit pass thorough as the MIN() and MAX() functions will operate in the SQL server database and your SAS table should receive only one row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not completing do you have some way to test the SQL code that you are submitting to the SQL server using some other method of submitting queries to that server (TOAD or other similar product for example) to check if there are problems?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 14:56:49 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-11-11T14:56:49Z</dc:date>
    <item>
      <title>Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136346#M1985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am starting a new client where we just got &lt;SPAN class="gm_ gm_ff7fec46-5ebe-9185-ff60-22ec674c6163 gm-spell gm_tiny"&gt;a&lt;/SPAN&gt; MS/SQL database built, and I am using the SAS/Access ODBC connection to passthru code.&amp;nbsp; Can I run a macro within this?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="gmw_"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="gmw_"&gt;&lt;SPAN class="gmw_"&gt;My end goal is to get a basic descriptive statistics from a number of rather large tables in MS/SQL (somewhat like a &lt;SPAN class="gm_ gm_2e9117c1-78a5-0881-c9a4-f65fb1be1f62 gm-spell"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="gmw_"&gt; univariate) without having to download all the data to the SAS server (which, to my understanding, is what would happen if I set a &lt;SPAN class="gm_ gm_0b39b8b2-259f-bb80-3b89-02f6abead9a6 gm-spell"&gt;libname&lt;/SPAN&gt;&lt;SPAN class="gmw_"&gt; and ran a &lt;SPAN class="gm_ gm_7e97f8bb-17af-d6a0-85e2-50a30f6c372a gm-spell"&gt;proc&lt;/SPAN&gt; univariate).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am wanting to do, but it gives me an unknown error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables Defined:&lt;/P&gt;&lt;P&gt;_Col_n - Variable Names (1 through &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO Test;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CONNECT TO ODBC (DATASRC=&amp;lt;db&amp;gt; USER=&amp;lt;user&amp;gt; PASSWORD="&amp;lt;pass&amp;gt;");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE TABLE Test AS SELECT * FROM CONNECTION TO ODBC(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT %DO n=1 %TO 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN(&amp;amp;&amp;amp;_COL_&amp;amp;n..) AS MIN_&amp;amp;&amp;amp;_COL_&amp;amp;n..,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(&amp;amp;&amp;amp;_COL_&amp;amp;n..) AS MAX_&amp;amp;&amp;amp;_COL_&amp;amp;n.., %END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 AS END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM &amp;lt;db&amp;gt;.&amp;lt;table&amp;gt;);&lt;/P&gt;&lt;P&gt;DISCONNECT FROM ODBC;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;%TEST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136346#M1985</guid>
      <dc:creator>That____Redhead</dc:creator>
      <dc:date>2013-11-08T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136347#M1986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This kind of macro which generates SQL is possible.&lt;/P&gt;&lt;P&gt;But as always, just writing that there is an error doesn't help much?!&lt;/P&gt;&lt;P&gt;Running this with options mprint will help you analyze. If the generated code looks fine there, using options sastrace may give some feedback from SQL Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 17:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136347#M1986</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-08T17:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136348#M1987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One other thing, I don't think there is a need for explicit SQL pass-thru in this case, this SQL will probably implicit "pass-thrued" - so you could simplify your code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 17:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136348#M1987</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-08T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136349#M1988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like &lt;A __default_attr="119192" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; I believe that you don't need explicit SQL pass-through for this. The access engine should be able to translate min and max functions to the DB SQL flavour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you're doing should work and it's only about debugging the code. I personally prefer for tasks like yours an approach where I first generate the code and write it to a file and then use an %include to execute the generated code. I find it much easier to debug the code this way. Below some tested sample code using such an approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro Basic_Tbl_Stats(lib,mem,test=no);&lt;BR /&gt;&amp;nbsp; filename codegen temp;&lt;BR /&gt;&amp;nbsp; data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if %upcase(&amp;amp;test) ne Y %then %nrstr(file codegen;);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %else %nrstr(file print;);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.vcolumn(where=(libname="%upcase(&amp;amp;lib)" and memname="%upcase(&amp;amp;mem)" and type='num')) end=last;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @1 "proc sql feedback;";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @3 "select"; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @5 "&amp;nbsp; min(" name ") as min_" name ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @5 ", max(" name ") as max_" name ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @5 ", min(" name ") as min_" name ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @5 ", max(" name ") as max_" name ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if last then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @3 "from &amp;amp;lib..&amp;amp;mem;";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @1 "quit;";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if %upcase(&amp;amp;test) ne Y %then %include codegen;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename codegen;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* test to show generated code */&lt;BR /&gt;%Basic_Tbl_Stats(sashelp,class,test=Y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* generate and execute code */&lt;BR /&gt;%Basic_Tbl_Stats(sashelp,class);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 07:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136349#M1988</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-09T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136350#M1989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I would construct the macro differently, but there is no reason that method shouldn't work.&amp;nbsp; Did you get specific error messages from SAS or the SQL Server?&amp;nbsp; It looks a like you are trying to create a variable name END, which might not be allowed in the database.&amp;nbsp; I think that ODBC supports putting the variable names in double quotes to preserve spaces, not sure if that would also all you to use keywords as variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let n=4 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let var1=VAR1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let var2=VAR2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let var3=VAR3 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let var4=VAR4 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%macro test ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%do i=1 %to &amp;amp;n ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; %if &amp;amp;i &amp;gt; 1 %then , ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; min("&amp;amp;&amp;amp;var&amp;amp;i") as "min_&amp;amp;&amp;amp;var&amp;amp;i"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; ,max("&amp;amp;&amp;amp;var&amp;amp;i") as "max_&amp;amp;&amp;amp;var&amp;amp;i"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%end ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%mend test ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PROC SQL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; CONNECT TO ODBC (DATASRC=&amp;lt;db&amp;gt; USER=&amp;lt;user&amp;gt; PASSWORD="&amp;lt;pass&amp;gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; CREATE TABLE Test AS SELECT * FROM CONNECTION TO ODBC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( select %TEST&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; DISCONNECT FROM ODBC;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;QUIT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also SAS can pass many functions into the database for you so that you could use a LIBREF instead of CONNECT statement and explicit pass-thru SQL.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acreldb/66690/HTML/default/viewer.htm#n1v5wmtc4w8g8bn1teluk6ilcpqr.htm" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/documentation/cdl/en/acreldb/66690/HTML/default/viewer.htm#n1v5wmtc4w8g8bn1teluk6ilcpqr.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 22:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136350#M1989</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-09T22:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136351#M1990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="gmw_"&gt;Thanks for everyone's feedback... I am not getting an error message returned from the MS/SQL &lt;SPAN class="gm_ gm_353adb41-6534-ae74-2634-a4b3bc2b17a1 gm-spell"&gt;db&lt;/SPAN&gt;.&amp;nbsp; In fact, it isn't even returning that it finishes... it says it is still running but the SQL query quits without returning an end / error command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this whole explicit vs implicit pass through thing... I have always known that if you set an implicit reference, it does all the data processing on the SAS server, but if you explicitly state a passthru command it processes the data manipulation on the remote box.&amp;nbsp; Is this not correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your feedback.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136351#M1990</guid>
      <dc:creator>That____Redhead</dc:creator>
      <dc:date>2013-11-11T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136352#M1991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax you have is for explicit pass thorough as the MIN() and MAX() functions will operate in the SQL server database and your SAS table should receive only one row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not completing do you have some way to test the SQL code that you are submitting to the SQL server using some other method of submitting queries to that server (TOAD or other similar product for example) to check if there are problems?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136352#M1991</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-11T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136353#M1992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I thought I was doing - thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually am waiting on the IT team to come install MS/SQL Server Management Studio for me so I can just directly query the &lt;SPAN class="gm_ gm_f9f47f75-8c57-7c4e-1c70-bf3d1b4979d6 gm-spell"&gt;db&lt;/SPAN&gt;.&amp;nbsp; Hopefully I can then see the errors and be able to troubleshoot it better.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 15:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136353#M1992</guid>
      <dc:creator>That____Redhead</dc:creator>
      <dc:date>2013-11-11T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro within SAS/Access Pass-thru</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136354#M1993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The implicit pass-tru will do the same thing as explicit pass-thru.&lt;/P&gt;&lt;P&gt;Have you tried SASTRACE? It will give information on how MySQL deals with the query itself (i.e. if you your SAS SQL will transform to implicit pass-thru or not).&lt;/P&gt;&lt;P&gt;Writing SAS SQL would might help you to get more direct feedback to the SAS session rather than explicit pass-thru, just a thought?&lt;/P&gt;&lt;P&gt;Also, look at the SYSDBMSG, SYSDBRC, SQLXMSG and SQLXRC macro variables after execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-within-SAS-Access-Pass-thru/m-p/136354#M1993</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-11-11T16:44:19Z</dc:date>
    </item>
  </channel>
</rss>

