<?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:Problems with WORK.SASMACR.CATALOG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54357#M11531</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
very  high find this's 'fantom' bug. I think you need &lt;BR /&gt;
&lt;B&gt;exclude WORK (-work option from config file) folder and it's subfolder from antivirus checking on your machine&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
some antivirusis lock new created files for virus scan.&lt;BR /&gt;
&lt;BR /&gt;
lu</description>
    <pubDate>Fri, 17 Jul 2009 17:14:01 GMT</pubDate>
    <dc:creator>lu</dc:creator>
    <dc:date>2009-07-17T17:14:01Z</dc:date>
    <item>
      <title>Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54349#M11523</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
since a couple of days we are facing some autoexec-issues: we %include the source code for our macros in the appserver_autoexec.sas which was very fine until recently. &lt;BR /&gt;
Now we get the below error message more and more often and we have no idea what could be the reason...of course the problem here is that then our batch-job will fail to run.&lt;BR /&gt;
Here's the log-excerpt (we are using SAS 9.1.3. SP4 on Windows Server 2003):&lt;BR /&gt;
&lt;I&gt;ERROR: A lock is not available for WORK.SASMACR.CATALOG, lock held by another process.&lt;BR /&gt;
ERROR: A dummy macro will be compiled.&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Any input would be highly appreciated,&lt;BR /&gt;
br Thomas</description>
      <pubDate>Tue, 14 Jul 2009 07:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54349#M11523</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2009-07-14T07:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54350#M11524</link>
      <description>Hmmm.&lt;BR /&gt;
&lt;BR /&gt;
Has any macro included from appserver_autoexec.sas been changed lately?&lt;BR /&gt;
&lt;BR /&gt;
Could be a macro that has some compiling issues...&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Tue, 14 Jul 2009 09:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54350#M11524</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-14T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54351#M11525</link>
      <description>No that can't be the reason because most of the times it still works but only sometimes crashes. Unfortunately the error is not reproducible.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the idea &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
br Thomas</description>
      <pubDate>Wed, 15 Jul 2009 12:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54351#M11525</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2009-07-15T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54352#M11526</link>
      <description>OK then.&lt;BR /&gt;
&lt;BR /&gt;
It could be a misuse of some macro. Say some "weird" parameter value passed to the macro that is messing with the macro code. Not easy to diagnose.&lt;BR /&gt;
&lt;BR /&gt;
One thing is sure, If everything was alright a couple of days before, something changed and provoked this behavior. I suggest you start from there, and try to identify what scripts have been modified recently.&lt;BR /&gt;
&lt;BR /&gt;
Best of luck.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Wed, 15 Jul 2009 22:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54352#M11526</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-15T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54353#M11527</link>
      <description>This looks like multiple sessions of SAS are trying to access the same physical WORK library. If you test your batch job with an interactive session running I would expect this error.</description>
      <pubDate>Thu, 16 Jul 2009 23:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54353#M11527</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2009-07-16T23:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54354#M11528</link>
      <description>Hmmm. Strange.&lt;BR /&gt;
&lt;BR /&gt;
For every session SAS creates/allocates a newly WORK lib with a randomly choosen directory name under the global WORK path (check fort hte -WORK option in your CFG file for the global WORK path). So it is virtually impossible to have two sessions sharing the same physical WORK lib.&lt;BR /&gt;
&lt;BR /&gt;
I would bet in some missing %mend or quote, or parameter misuse that is messing with the macro compiler and locking the catalog.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Fri, 17 Jul 2009 07:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54354#M11528</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-17T07:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54355#M11529</link>
      <description>We are indeed using SAS/Connect sometimes to change the user during code execution. The strange thing is that it works most of the times, then it fails with the mentioned error.&lt;BR /&gt;
&lt;BR /&gt;
I'll try to add some code to the autoexec.sas which checks for (compiled) macros and that deletes them.&lt;BR /&gt;
&lt;BR /&gt;
br Thomas</description>
      <pubDate>Fri, 17 Jul 2009 12:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54355#M11529</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2009-07-17T12:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54356#M11530</link>
      <description>for another approach:&lt;BR /&gt;
as you use %include of common code, I assume you normally include the same collection of macros. Have you tried pre-compiling the macros with the mSTORED option? &lt;BR /&gt;
It should be straight forward to prepare the catalog and move into the server on a one-off basis. In the server, place it somewhere that can be addressed by your users on a read-only basis. That should stop the contention lock.&lt;BR /&gt;
 &lt;BR /&gt;
just my $0.02&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 17 Jul 2009 12:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54356#M11530</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-07-17T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re:Problems with WORK.SASMACR.CATALOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54357#M11531</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
very  high find this's 'fantom' bug. I think you need &lt;BR /&gt;
&lt;B&gt;exclude WORK (-work option from config file) folder and it's subfolder from antivirus checking on your machine&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
some antivirusis lock new created files for virus scan.&lt;BR /&gt;
&lt;BR /&gt;
lu</description>
      <pubDate>Fri, 17 Jul 2009 17:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problems-with-WORK-SASMACR-CATALOG/m-p/54357#M11531</guid>
      <dc:creator>lu</dc:creator>
      <dc:date>2009-07-17T17:14:01Z</dc:date>
    </item>
  </channel>
</rss>

