<?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 redirecting the output of LOCK LIST to output file insead of Log File. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71668#M15512</link>
    <description>Hi,&lt;BR /&gt;
    I am writing a macro which will try to lock the dataset using LOCK  DS_name command. If due to contention the Lock fails then we need to trigger an email which will contain details about the user/process holding the lock on given table. By using LOCK DS_name LIST we can know this but these details from LOCK LIST get written into Log file. Is there any way to redirect output of this command to some dataset which we can use for sending an email.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Amol Deshmukh</description>
    <pubDate>Thu, 29 Jan 2009 15:01:12 GMT</pubDate>
    <dc:creator>dav_amol</dc:creator>
    <dc:date>2009-01-29T15:01:12Z</dc:date>
    <item>
      <title>redirecting the output of LOCK LIST to output file insead of Log File.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71668#M15512</link>
      <description>Hi,&lt;BR /&gt;
    I am writing a macro which will try to lock the dataset using LOCK  DS_name command. If due to contention the Lock fails then we need to trigger an email which will contain details about the user/process holding the lock on given table. By using LOCK DS_name LIST we can know this but these details from LOCK LIST get written into Log file. Is there any way to redirect output of this command to some dataset which we can use for sending an email.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Amol Deshmukh</description>
      <pubDate>Thu, 29 Jan 2009 15:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71668#M15512</guid>
      <dc:creator>dav_amol</dc:creator>
      <dc:date>2009-01-29T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting the output of LOCK LIST to output file insead of Log File.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71669#M15513</link>
      <description>SAS 9.2 discussion should lend some guidance.  You can use a macro to interrogate the LOCK return code, and then decide what course to take regarding an EMAIL, with condition %IF %THEN %DO / %END  code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS/Share 9.2 DOC: Locking Objects Explicitly (LOCK Statement)&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/shrref/59595/HTML/default/a000203048.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/shrref/59595/HTML/default/a000203048.htm&lt;/A&gt;</description>
      <pubDate>Thu, 29 Jan 2009 20:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71669#M15513</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-01-29T20:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting the output of LOCK LIST to output file insead of Log File.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71670#M15514</link>
      <description>have a look at ROC PRINTTO.&lt;BR /&gt;
That will redirect the log to a file from which you can read the messages.&lt;BR /&gt;
&lt;BR /&gt;
good luck&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Thu, 29 Jan 2009 20:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-the-output-of-LOCK-LIST-to-output-file-insead-of-Log/m-p/71670#M15514</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-29T20:01:41Z</dc:date>
    </item>
  </channel>
</rss>

