<?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 SAS STP Server (9.4M7) Exits with Status=4 after XLSX Import in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977872#M30367</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are seeing an unexpected &lt;STRONG&gt;Status=4&lt;/STRONG&gt; return code after running a Stored Process (STP) on our SAS 9.4M7 Stored Process Server.&lt;/P&gt;&lt;P&gt;The process involves a user uploading a large &lt;STRONG&gt;XLSX file&lt;/STRONG&gt; via the Stored Process Web App, which is then processed by &lt;CODE&gt;PROC IMPORT&lt;/CODE&gt; and subsequently several &lt;CODE&gt;PROC APPEND&lt;/CODE&gt; steps (using the &lt;CODE&gt;FORCE&lt;/CODE&gt; option) to load data.&lt;/P&gt;&lt;P&gt;The job finishes, but the &lt;STRONG&gt;Status=4&lt;/STRONG&gt; indicates a warning/minor error. We suspect this is due to data type conversion warnings from the &lt;CODE&gt;PROC IMPORT&lt;/CODE&gt; or &lt;CODE&gt;PROC APPEND FORCE&lt;/CODE&gt; steps.&lt;/P&gt;&lt;P&gt;Could a Status=4 simply mean a &lt;STRONG&gt;WARNING&lt;/STRONG&gt; occurred, or does it point to a specific server configuration issue that forces warnings to escalate to this exit code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Key Log Snippet:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Code snippet&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;Host: 'CLTSTSASS01', OS: 'WIN', Release: '10.0', SAS Version: '9.04.01M7P08052020', Command: "E:\SASHome\SASFoundation\9.4\sas.exe" ...
...
2025-10-26T11:56:07,316 INFO [00001589] 20:rgfadmin@TEST - STP: 9: Executing F:\SASDATA\Stored_process PortfolioData_Import.sas
2025-10-26T11:56:47,822 INFO [00001589] 20:rgfadmin@ETEST - STP: 9: Execution Complete. Status=4
...
// The last executed steps show the core issue:
111 +PROC IMPORT DATAFILE="&amp;amp;_WEBIN_FILEREF"
112 +	DBMS=XLSX
113 +	OUT=CASHFLOW REPLACE;
114 +	GETNAMES=yes;
115 +	sheet="CASHFLOW";
116 +RUN;
...
138 +PROC APPEND BASE=LND_HIST.CASHFLOW_HIST DATA=EXIM_LND.CASHFLOW FORCE;
139 +RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;What is the most likely cause of a persistent Status=4 when using &lt;CODE&gt;PROC IMPORT XLSX&lt;/CODE&gt; and &lt;CODE&gt;PROC APPEND FORCE&lt;/CODE&gt; on an STP Server?&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2025 09:59:33 GMT</pubDate>
    <dc:creator>Musheer1</dc:creator>
    <dc:date>2025-10-27T09:59:33Z</dc:date>
    <item>
      <title>SAS STP Server (9.4M7) Exits with Status=4 after XLSX Import</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977872#M30367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are seeing an unexpected &lt;STRONG&gt;Status=4&lt;/STRONG&gt; return code after running a Stored Process (STP) on our SAS 9.4M7 Stored Process Server.&lt;/P&gt;&lt;P&gt;The process involves a user uploading a large &lt;STRONG&gt;XLSX file&lt;/STRONG&gt; via the Stored Process Web App, which is then processed by &lt;CODE&gt;PROC IMPORT&lt;/CODE&gt; and subsequently several &lt;CODE&gt;PROC APPEND&lt;/CODE&gt; steps (using the &lt;CODE&gt;FORCE&lt;/CODE&gt; option) to load data.&lt;/P&gt;&lt;P&gt;The job finishes, but the &lt;STRONG&gt;Status=4&lt;/STRONG&gt; indicates a warning/minor error. We suspect this is due to data type conversion warnings from the &lt;CODE&gt;PROC IMPORT&lt;/CODE&gt; or &lt;CODE&gt;PROC APPEND FORCE&lt;/CODE&gt; steps.&lt;/P&gt;&lt;P&gt;Could a Status=4 simply mean a &lt;STRONG&gt;WARNING&lt;/STRONG&gt; occurred, or does it point to a specific server configuration issue that forces warnings to escalate to this exit code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Key Log Snippet:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Code snippet&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;Host: 'CLTSTSASS01', OS: 'WIN', Release: '10.0', SAS Version: '9.04.01M7P08052020', Command: "E:\SASHome\SASFoundation\9.4\sas.exe" ...
...
2025-10-26T11:56:07,316 INFO [00001589] 20:rgfadmin@TEST - STP: 9: Executing F:\SASDATA\Stored_process PortfolioData_Import.sas
2025-10-26T11:56:47,822 INFO [00001589] 20:rgfadmin@ETEST - STP: 9: Execution Complete. Status=4
...
// The last executed steps show the core issue:
111 +PROC IMPORT DATAFILE="&amp;amp;_WEBIN_FILEREF"
112 +	DBMS=XLSX
113 +	OUT=CASHFLOW REPLACE;
114 +	GETNAMES=yes;
115 +	sheet="CASHFLOW";
116 +RUN;
...
138 +PROC APPEND BASE=LND_HIST.CASHFLOW_HIST DATA=EXIM_LND.CASHFLOW FORCE;
139 +RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;What is the most likely cause of a persistent Status=4 when using &lt;CODE&gt;PROC IMPORT XLSX&lt;/CODE&gt; and &lt;CODE&gt;PROC APPEND FORCE&lt;/CODE&gt; on an STP Server?&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 09:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977872#M30367</guid>
      <dc:creator>Musheer1</dc:creator>
      <dc:date>2025-10-27T09:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS STP Server (9.4M7) Exits with Status=4 after XLSX Import</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977877#M30368</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Musheer1_0-1761564427084.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110973iBDF734985FE1F1EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Musheer1_0-1761564427084.png" alt="Musheer1_0-1761564427084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;stick in this status more than 24 hours&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 11:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977877#M30368</guid>
      <dc:creator>Musheer1</dc:creator>
      <dc:date>2025-10-27T11:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS STP Server (9.4M7) Exits with Status=4 after XLSX Import</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977880#M30370</link>
      <description>&lt;P&gt;PROC IMPORT is notoriously unreliable with regard to structure of the imported data. Don't expect consistent results which are mandatory for a later APPEND to work flawlessly.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;No Excel files for import; demand a text file (csv) instead&lt;/LI&gt;
&lt;LI&gt;Read with a DATA step to get consistent structure&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;See Maxims 22 &amp;amp; 31.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 12:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977880#M30370</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-10-27T12:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS STP Server (9.4M7) Exits with Status=4 after XLSX Import</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977886#M30371</link>
      <description>&lt;P&gt;I'm not an&amp;nbsp; admin, but I know it's possible to configure logging on the stored process server so that it will capture the full log from the stored process that was run.&amp;nbsp; I would do that, then review the log to find the step that caused the warning/error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are seeing warnings in your log from the PROC IMPORT or PROC APPEND step, then yes that would explain the status being set to 4. It's best to correct your code to avoid those warnings.&amp;nbsp; &amp;nbsp;There is also a NOWARN option which can be added to PROC APPEND to suppress warning messages.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 13:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977886#M30371</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-10-27T13:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS STP Server (9.4M7) Exits with Status=4 after XLSX Import</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977888#M30372</link>
      <description>&lt;P&gt;If you really must read in data from XLSX files that you then what to combine with other datasets then you must put in a step to confirm that the structure (variable names, types, lengths) of the datasets are compatible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either a step that it just checks the structure and reports the differences so you know why the process failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or something that is smart enough to modify the structure to make it compatible.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-STP-Server-9-4M7-Exits-with-Status-4-after-XLSX-Import/m-p/977888#M30372</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-10-27T14:00:27Z</dc:date>
    </item>
  </channel>
</rss>

