<?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 Manually setting the macro readly-only error code to self-defined error code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Manually-setting-the-macro-readly-only-error-code-to-self/m-p/845431#M36808</link>
    <description>&lt;P&gt;Usually I would write a shell script in LINUX to execute SAS program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to read return code for interpreting the status (success/fail) of the program as below method&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricric_0-1669021438290.png" style="width: 250px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77500iFCF376BDB7DBBA77/image-dimensions/250x150?v=v2" width="250" height="150" role="button" title="ricric_0-1669021438290.png" alt="ricric_0-1669021438290.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learnt that in SAS DI, there is a&amp;nbsp; macro function&amp;nbsp;rcSet(error) that can override the error code.&lt;/P&gt;&lt;P&gt;However, I cannot find a method to overwrite the return code when writing base SAS program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone advise how to perform same behavior compared to SAS DI?&lt;/P&gt;&lt;P&gt;If really cannot overwrite the error code, is there any way to give out a return code for the shell script to read?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 09:10:26 GMT</pubDate>
    <dc:creator>ricric</dc:creator>
    <dc:date>2022-11-21T09:10:26Z</dc:date>
    <item>
      <title>Manually setting the macro readly-only error code to self-defined error code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-setting-the-macro-readly-only-error-code-to-self/m-p/845431#M36808</link>
      <description>&lt;P&gt;Usually I would write a shell script in LINUX to execute SAS program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to read return code for interpreting the status (success/fail) of the program as below method&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricric_0-1669021438290.png" style="width: 250px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77500iFCF376BDB7DBBA77/image-dimensions/250x150?v=v2" width="250" height="150" role="button" title="ricric_0-1669021438290.png" alt="ricric_0-1669021438290.png" /&gt;&lt;/span&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learnt that in SAS DI, there is a&amp;nbsp; macro function&amp;nbsp;rcSet(error) that can override the error code.&lt;/P&gt;&lt;P&gt;However, I cannot find a method to overwrite the return code when writing base SAS program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone advise how to perform same behavior compared to SAS DI?&lt;/P&gt;&lt;P&gt;If really cannot overwrite the error code, is there any way to give out a return code for the shell script to read?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-setting-the-macro-readly-only-error-code-to-self/m-p/845431#M36808</guid>
      <dc:creator>ricric</dc:creator>
      <dc:date>2022-11-21T09:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Manually setting the macro readly-only error code to self-defined error code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-setting-the-macro-readly-only-error-code-to-self/m-p/845438#M36811</link>
      <description>&lt;P&gt;Do I understand you correctly that you want the same behaviour as you have in SAS DI Studio, but implement it in a non-DI Studio program?&lt;/P&gt;
&lt;P&gt;You could just copy the rcSet macro definition to your code, and use it like DI Studio generated code does?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 10:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-setting-the-macro-readly-only-error-code-to-self/m-p/845438#M36811</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-11-21T10:35:14Z</dc:date>
    </item>
  </channel>
</rss>

