<?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 &amp;syserr macro not working in PROC DATASETS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/178355#M34116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hi I'm using Proc datasets moving option to moving data from one library to another if datasets not available I need to capture Warning/error from code. Same&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;amp;syserr&lt;/STRONG&gt; macro working in data step but not working in proc datasets. pls advise me how to capture error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/*1-WORKING*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;data NULL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;set doesnotexist;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;%put &amp;amp;syserr;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/*2-NOT WORKING*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;PROC DATASETS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;COPY IN=Source OUT=Target MOVE MEMTYPE=DATA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;%put &amp;amp;syserr;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 03:28:22 GMT</pubDate>
    <dc:creator>chirumalla</dc:creator>
    <dc:date>2014-04-14T03:28:22Z</dc:date>
    <item>
      <title>&amp;syserr macro not working in PROC DATASETS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/178355#M34116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hi I'm using Proc datasets moving option to moving data from one library to another if datasets not available I need to capture Warning/error from code. Same&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;&amp;amp;syserr&lt;/STRONG&gt; macro working in data step but not working in proc datasets. pls advise me how to capture error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/*1-WORKING*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;data NULL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;set doesnotexist;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;run; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #000080;"&gt;%put &amp;amp;syserr;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #008000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/*2-NOT WORKING*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;PROC DATASETS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;COPY IN=Source OUT=Target MOVE MEMTYPE=DATA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;%put &amp;amp;syserr;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 03:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/178355#M34116</guid>
      <dc:creator>chirumalla</dc:creator>
      <dc:date>2014-04-14T03:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;syserr macro not working in PROC DATASETS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/254342#M48493</link>
      <description>&lt;P&gt;Hi Chirumalla,&lt;/P&gt;
&lt;P&gt;PROC DATASETS is part of run group processing, which means that the step doesn't actually finish until it encounters a QUIT statement or the start of a new step. A plain old run statement just executes your COPY statement but does not terminate PROC DATASETS and SYSERR only gets updated correctly when the step has terminated. Simply add a quit statement before checking the value of SYSERR.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*1-WORKING*/&lt;BR /&gt;data NULL;&lt;BR /&gt;set doesnotexist;&lt;BR /&gt;run;&lt;BR /&gt;%put error is &amp;amp;syserr;&lt;BR /&gt;/*2-ALSO WORKING*/&lt;BR /&gt;PROC DATASETS;&lt;BR /&gt;COPY IN=Source OUT=Target MOVE MEMTYPE=DATA;&lt;BR /&gt;RUN;&lt;BR /&gt;quit;&lt;BR /&gt;%put error is &amp;amp;syserr;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/254342#M48493</guid>
      <dc:creator>mbuchecker</dc:creator>
      <dc:date>2016-03-03T21:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: &amp;syserr macro not working in PROC DATASETS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/445843#M111794</link>
      <description>&lt;P&gt;Hello Michel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks... It worked for me by doing suggested changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syserr-macro-not-working-in-PROC-DATASETS/m-p/445843#M111794</guid>
      <dc:creator>ChoudharyM</dc:creator>
      <dc:date>2018-03-15T14:09:36Z</dc:date>
    </item>
  </channel>
</rss>

