<?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 how to prevent SAS launching pop up before running autoexec.sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467216#M119269</link>
    <description>&lt;P&gt;I want to run a code at a specific time, daily, that code reads from the Sasoprsk library and generate emails. For reading the data from Sasoprsk library, first I've to run the autoexec.sas to register it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a batch file and run it using Task Scheduler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My batch file code looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"D:\SAS\SASHome\SASFoundation\9.4\sas.exe" -SYSIN "D:\SAS\SASConfig\Lev1\Applications\SASEnterpriseGRCServerCfg\6.1\Source\sasstp\test_email.sas" -LOG "D:\Notifications\test_email.log"

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I included autoexec in my code using %inc statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running it from task shedular, I received this log error and my code stops running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log Error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(ORM_DB_LIBNAME):   libname sasoprsk ODBC datasrc=SAS_EGRC_PROD authdomain=GRC_db_auth dbmax_text=4000 connection=shared;
ERROR: Libref SASOPRSK is not assigned.
ERROR: Error in the LIBNAME statement.
ERROR: Libref SASOPRSK is not assigned.
ERROR: Execution canceled by an %ABORT CANCEL statement.
NOTE: The SAS System stopped processing due to receiving a CANCEL request.
ERROR: Errors printed on page 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run autoexec from batch file as&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;"D:\SAS\SASHome\SASFoundation\9.4\sas.exe" -SYSIN "D:\SAS\SASConfig\Lev1\Applications\SASEnterpriseGRCServerCfg\6.1\Source\ucmacros\orm_autoexec.sas" -LOG "D:\Notifications\test.log"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but Error is same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possibly due to that pop up, because if i run my code manually it works fine. All fields of pop up window are auto saved but may be, because no one is there to press OK button of popup window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest an approach to register sasoprsk library by running autoexec.sas from batch file.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 03 Jun 2018 11:53:06 GMT</pubDate>
    <dc:creator>Azeem112</dc:creator>
    <dc:date>2018-06-03T11:53:06Z</dc:date>
    <item>
      <title>how to prevent SAS launching pop up before running autoexec.sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467216#M119269</link>
      <description>&lt;P&gt;I want to run a code at a specific time, daily, that code reads from the Sasoprsk library and generate emails. For reading the data from Sasoprsk library, first I've to run the autoexec.sas to register it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a batch file and run it using Task Scheduler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My batch file code looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"D:\SAS\SASHome\SASFoundation\9.4\sas.exe" -SYSIN "D:\SAS\SASConfig\Lev1\Applications\SASEnterpriseGRCServerCfg\6.1\Source\sasstp\test_email.sas" -LOG "D:\Notifications\test_email.log"

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I included autoexec in my code using %inc statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running it from task shedular, I received this log error and my code stops running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log Error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(ORM_DB_LIBNAME):   libname sasoprsk ODBC datasrc=SAS_EGRC_PROD authdomain=GRC_db_auth dbmax_text=4000 connection=shared;
ERROR: Libref SASOPRSK is not assigned.
ERROR: Error in the LIBNAME statement.
ERROR: Libref SASOPRSK is not assigned.
ERROR: Execution canceled by an %ABORT CANCEL statement.
NOTE: The SAS System stopped processing due to receiving a CANCEL request.
ERROR: Errors printed on page 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run autoexec from batch file as&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;"D:\SAS\SASHome\SASFoundation\9.4\sas.exe" -SYSIN "D:\SAS\SASConfig\Lev1\Applications\SASEnterpriseGRCServerCfg\6.1\Source\ucmacros\orm_autoexec.sas" -LOG "D:\Notifications\test.log"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but Error is same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possibly due to that pop up, because if i run my code manually it works fine. All fields of pop up window are auto saved but may be, because no one is there to press OK button of popup window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly suggest an approach to register sasoprsk library by running autoexec.sas from batch file.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2018 11:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467216#M119269</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2018-06-03T11:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to prevent SAS launching pop up before running autoexec.sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467452#M119322</link>
      <description>&lt;P&gt;Can you post a screen capture of the "pop up"? We would need so information about that if it is the culprit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would look into the session ODBC settings in general also since your failure relates to an ODBC LIBNAME.&lt;/P&gt;
&lt;P&gt;If you "manual" run is using your local machine ODBC settings a batch run under Enterprise Guide may not recognize your local computer ODBC but is attempting to use the EG server settings.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 16:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467452#M119322</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-04T16:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to prevent SAS launching pop up before running autoexec.sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467985#M119494</link>
      <description>&lt;P&gt;Dear Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached the screenshot of that pop up, however I've found a solution of it using libname odbc. I made the connection in ODBC with&amp;nbsp;live database of&amp;nbsp;application and and then using libname odbc I created a libname of name "Sasoprsk". It worked.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 08:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-prevent-SAS-launching-pop-up-before-running-autoexec-sas/m-p/467985#M119494</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2018-06-06T08:02:43Z</dc:date>
    </item>
  </channel>
</rss>

