<?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 code runs fine in Base but not in batch in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308754#M66300</link>
    <description>&lt;P&gt;Two things that jump out at me from those log snippets:&lt;/P&gt;
&lt;P&gt;- What is &amp;amp;SQL1? &amp;nbsp;You have not shown all the code, nor the log with options mlogic mprint symblogen on.&lt;/P&gt;
&lt;P&gt;- The log looks peculier to say the least, proc sql in interactive starts at line 581, but in batch 286. &amp;nbsp;Why the difference in 300 lines of log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 14:26:56 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-11-02T14:26:56Z</dc:date>
    <item>
      <title>SAS code runs fine in Base but not in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308741#M66294</link>
      <description>&lt;P&gt;I have SAS code with connects to DB2 using Pass thru ODBC.&lt;/P&gt;&lt;P&gt;When I run in SAS base, it connects and extracts the data okay.&lt;/P&gt;&lt;P&gt;When I run this same code from a DOS batch file, it extracts 0 data.&lt;/P&gt;&lt;P&gt;I don't see any errors in the log.&lt;/P&gt;&lt;P&gt;I am running SAS 9.3 on a Windows 7 64 bit.&lt;/P&gt;&lt;P&gt;The ODBC driver to DB2 is a 64 bit drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 12:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308741#M66294</guid>
      <dc:creator>TGuy</dc:creator>
      <dc:date>2016-11-02T12:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code runs fine in Base but not in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308746#M66296</link>
      <description>&lt;P&gt;So the batch log simply says it created the SAS dataset with 0 observations?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 13:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308746#M66296</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-02T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code runs fine in Base but not in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308747#M66297</link>
      <description>&lt;P&gt;Hi, this is the part of the log when run from Base SAS.&lt;/P&gt;&lt;P&gt;579&lt;/P&gt;&lt;P&gt;580 /* Local Passthrough query via ODBC to&amp;nbsp;Database */&lt;/P&gt;&lt;P&gt;581 proc sql;&lt;/P&gt;&lt;P&gt;582 connect to ODBC(dsn="PRPDX" uid = USERID password = XXXXXXXXXX );&lt;/P&gt;&lt;P&gt;584 create table getPFX(compress = yes) as&lt;/P&gt;&lt;P&gt;585 select * from connection to ODBC(&amp;amp;SQL1);&lt;/P&gt;&lt;P&gt;NOTE: Compressing data set WORK.GETPFX decreased size by 76.21 percent.&lt;/P&gt;&lt;P&gt;Compressed is 29848 pages; un-compressed would require 125466 pages.&lt;/P&gt;&lt;P&gt;NOTE: Table WORK.GETPFX created, with 2634768 rows and 20 columns.&lt;/P&gt;&lt;P&gt;586 disconnect from ODBC;&lt;/P&gt;&lt;P&gt;587 quit;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/P&gt;&lt;P&gt;real time 2:24.17&lt;/P&gt;&lt;P&gt;cpu time 31.83 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the log when run from a DOS batch files.&lt;/P&gt;&lt;P&gt;285&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Local Passthrough query via ODBC to Performix Database&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;286&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql;&lt;BR /&gt;287&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect to ODBC(dsn="PRPDX" uid = USERID password = XXXXXXXXXX );&lt;BR /&gt;289&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table getPFX(compress = yes) as&lt;BR /&gt;290&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from connection to ODBC(&amp;amp;SQL1);&lt;BR /&gt;NOTE: Table WORK.GETPFX created, with 0 rows and 20 columns.&lt;/P&gt;&lt;P&gt;291&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disconnect from ODBC;&lt;BR /&gt;292&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;BR /&gt;NOTE: SAS set option OBS=0 and will continue to check statements.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This might cause NOTE: No observations in data set.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.39 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.12 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No rows pulled and no errors.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 13:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308747#M66297</guid>
      <dc:creator>TGuy</dc:creator>
      <dc:date>2016-11-02T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code runs fine in Base but not in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308750#M66298</link>
      <description>&lt;P&gt;Hm. That:&lt;/P&gt;
&lt;PRE&gt;NOTE: SAS set option OBS=0 and will continue to check statements.&lt;/PRE&gt;
&lt;P&gt;usually appears immediately after an ERROR message. So there must be something in that SQL that causes an ERROR, but doesn't display a proper message.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308750#M66298</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-02T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS code runs fine in Base but not in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308754#M66300</link>
      <description>&lt;P&gt;Two things that jump out at me from those log snippets:&lt;/P&gt;
&lt;P&gt;- What is &amp;amp;SQL1? &amp;nbsp;You have not shown all the code, nor the log with options mlogic mprint symblogen on.&lt;/P&gt;
&lt;P&gt;- The log looks peculier to say the least, proc sql in interactive starts at line 581, but in batch 286. &amp;nbsp;Why the difference in 300 lines of log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-code-runs-fine-in-Base-but-not-in-batch/m-p/308754#M66300</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-02T14:26:56Z</dc:date>
    </item>
  </channel>
</rss>

