<?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: syscc doesn't get resolved. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/867070#M342428</link>
    <description>&lt;P&gt;Hello SASKIWI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wow, it is resolved! Thank you so very much. I needed to deliver the results of the program to leaders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bita&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 16:50:54 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2023-03-29T16:50:54Z</dc:date>
    <item>
      <title>syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/866892#M342377</link>
      <description>&lt;PRE&gt;%let email = ('bbbb@abc.com' 'dddd@abc.com' 'fff@abc.com');&lt;BR /&gt;&lt;BR /&gt;filename mailit email;&lt;BR /&gt;options nosyntaxcheck;&lt;BR /&gt;&lt;BR /&gt;%macro completeit;
  %if &amp;amp;syscc &amp;gt; 999 %then %do;
    data _null_;
      file mailit
           to=&amp;amp;email
           subject="&amp;amp;syscc.sas failed";

      put "This is an automated message that "&amp;amp;syscc.sas failed" failed with an error code &amp;amp;syscc..";
      put;
    run;
  %end;

  %else %do;

  data _null_;
     file mailit
          to=&amp;amp;email
           subject="job not completed";
            put ;
            put "&amp;amp;outdirectory.";
			put "==================";
			
    run;

  %end;&lt;/PRE&gt;
&lt;P&gt;Program:&lt;/P&gt;
&lt;P&gt;An email is created and sent over if the program succeeds. I don't have a log created for this code. This code is not resolved or opened in the log window.&lt;/P&gt;
&lt;P&gt;Any help is appreciated!&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Blue blue&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 23:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/866892#M342377</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-03-28T23:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/866893#M342378</link>
      <description>&lt;P&gt;A SAS macro must start with a %MACRO statement and end in a %MEND statement. I don't see a %MEND&amp;nbsp;statement in your code. However to call the macro you need to add the statement %COMPLETEIT; as well otherwise it will never get executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro completeit;
  %if &amp;amp;syscc &amp;gt; 999 %then %do;
    data _null_;
      file mailit
           to=&amp;amp;email
           subject="&amp;amp;syscc.sas failed";

      put "This is an automated message that "&amp;amp;syscc.sas failed" failed with an error code &amp;amp;syscc..";
      put;
    run;
  %end;

  %else %do;

  data _null_;
     file mailit
          to=&amp;amp;email
           subject="job not completed";
            put ;
            put "&amp;amp;outdirectory.";
			put "==================";
			
    run;

  %end;
%mend;

%completeit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 23:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/866893#M342378</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-28T23:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/867070#M342428</link>
      <description>&lt;P&gt;Hello SASKIWI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wow, it is resolved! Thank you so very much. I needed to deliver the results of the program to leaders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bita&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 16:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/867070#M342428</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-03-29T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873503#M345131</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;After a month, I came to run this code that mentioned on the start of this forum, it fails with error code 3000. While the program run correct, but the email message is created is a fail.&lt;/P&gt;
&lt;PRE&gt;SYMBOLGEN:  Macro variable SYSCC resolves to 3000&lt;/PRE&gt;
&lt;P&gt;I can't send the rest of the log, because it is confidential.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blue&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 23:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873503#M345131</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-05-02T23:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873529#M345151</link>
      <description>&lt;P&gt;hello team,&lt;/P&gt;
&lt;P&gt;I ran into same issue after a month.&lt;/P&gt;
&lt;P&gt;I get &amp;amp;syscc to 3000.&lt;/P&gt;
&lt;P&gt;I run the program line by line and no error in the log but as soon as I go to the part which I marked as answer, it gives me error code 3000.&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;a blue&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 05:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873529#M345151</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-05-03T05:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873541#M345158</link>
      <description>&lt;P&gt;If the code was working correctly and the code was not changed then something else has changed. Possibly email addresses??? or stuff sent to the email system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might ask about changes to your system done by IT for any of the involved programs such as email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the code was changed, then you get start all over with the debug cycle.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 06:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873541#M345158</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T06:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873575#M345169</link>
      <description>&lt;P&gt;&lt;EM&gt;Anything&lt;/EM&gt; except zero is unnacceptable for SYSCC at the end of a job.&lt;/P&gt;
&lt;P&gt;Any non-zero value means (at least) one of:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;an ERROR has occured&lt;/LI&gt;
&lt;LI&gt;a WARNING has occured&lt;/LI&gt;
&lt;LI&gt;SYSCC was explicitly set (%LET, CALL SYMPUT, SELECT INTO)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You need to work through your whole log from top to bottom to fix any occurence of the above. If in doubt, add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=syscc.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;frequently in your code to detect the location where something goes wrong (if it's not an obvious ERROR or WARNING).&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 09:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/873575#M345169</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-03T09:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: syscc doesn't get resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/874368#M345457</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;I had a backup of the program so I used that one and I never realized what is the difference one works and one doesn’t work.&amp;nbsp;&lt;BR /&gt;respectfully,&lt;/P&gt;
&lt;P&gt;blue thunder&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 23:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syscc-doesn-t-get-resolved/m-p/874368#M345457</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-05-07T23:30:35Z</dc:date>
    </item>
  </channel>
</rss>

