<?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: Order list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992485#M380434</link>
    <description>Thank you, Chris !&lt;BR /&gt;Can this macro variable take different values depending on whether it's a warning or a real error?</description>
    <pubDate>Mon, 24 Aug 2026 08:30:34 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2026-08-24T08:30:34Z</dc:date>
    <item>
      <title>Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992318#M380426</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello experts,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am running SAS code in SAS Enterprise Guide 8.3 using an Ordered List. I would like to know if there is an option to stop the execution when one of the programs encounters an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2026 07:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992318#M380426</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-08-21T07:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992352#M380427</link>
      <description>&lt;P&gt;You &lt;A href="https://go.documentation.sas.com/doc/en/egcdc/8.6/egdoccdc/egug/p13s5c5jc3zgo3n18q122ixerw9v.htm#p1teoifkj61wxnn1kpwt9x8na9bz" target="_self"&gt;should be able to add a Condition to the item&lt;/A&gt; in your process flow. The condition can be based on different criteria, but the easiest method is to check a macro variable. You can use SYSCC (built in error code that you can reset), or you can set a macro variable to indicate some other "error" condition (such as a data set that doesn't exist).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you add your items to the Ordered List, the condition is still evaluated and the node won't run if the condition isn't met.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisHemedinger_0-1787316491414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/117138i6919EF2BCB395FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisHemedinger_0-1787316491414.png" alt="ChrisHemedinger_0-1787316491414.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ChrisHemedinger_0-1787316491414.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisHemedinger_1-1787316502703.png" style="width: 758px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/117140iB3079BBF72BF9580/image-dimensions/758x285?v=v2" width="758" height="285" role="button" title="ChrisHemedinger_1-1787316502703.png" alt="ChrisHemedinger_1-1787316502703.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ChrisHemedinger_1-1787316502703.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2026 12:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992352#M380427</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2026-08-21T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992418#M380428</link>
      <description>Thank you,Chris!&lt;BR /&gt;SYSCC is an automatic variable, so I don't need to create it myself?</description>
      <pubDate>Fri, 21 Aug 2026 16:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992418#M380428</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-08-21T16:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992427#M380429</link>
      <description>&lt;P&gt;Yes, SYSCC is automatic and will have a non-zero value if an error occurs. But you can/should clear it with "%let SYSCC=0;" to reset it when you want to start from a clean slate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYSERR is another automatic variable, but you cannot reset that in the session (it is read-only).&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2026 17:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992427#M380429</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2026-08-21T17:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992485#M380434</link>
      <description>Thank you, Chris !&lt;BR /&gt;Can this macro variable take different values depending on whether it's a warning or a real error?</description>
      <pubDate>Mon, 24 Aug 2026 08:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992485#M380434</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-08-24T08:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992501#M380437</link>
      <description>&lt;P&gt;If I was doing setting this up, I wouldn't rely only on SYSCC. I would set a macro variable at the end of each step that was a flag for "all good?", depending on conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this might be based on SYSCC, or existence of an expected data set, or some other combination of conditions. That will ensure that your next step runs only when all assumed "good" conditions have been satisfied.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2026 13:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992501#M380437</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2026-08-24T13:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992503#M380438</link>
      <description>Thank you! I mean the SYSCC may not be equal to 0 when it's just a warning.</description>
      <pubDate>Mon, 24 Aug 2026 13:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992503#M380438</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-08-24T13:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Order list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992523#M380439</link>
      <description>&lt;P&gt;Typiclly SYSCC will be 4 when a WARNING occurs.&lt;/P&gt;
&lt;P&gt;There are some interactions with the ERRORCHECK system setting and some specific statements such as LIBNAME , FILENAME and %INCLUDE statements. You should read the online help for SYSCC for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These statements are likely just one reason that setting your own global macro variable might be a good idea.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2026 15:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Order-list/m-p/992523#M380439</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2026-08-24T15:36:21Z</dc:date>
    </item>
  </channel>
</rss>

