Hello,
We are seeing an unexpected Status=4 return code after running a Stored Process (STP) on our SAS 9.4M7 Stored Process Server.
The process involves a user uploading a large XLSX file via the Stored Process Web App, which is then processed by PROC IMPORT and subsequently several PROC APPEND steps (using the FORCE option) to load data.
The job finishes, but the Status=4 indicates a warning/minor error. We suspect this is due to data type conversion warnings from the PROC IMPORT or PROC APPEND FORCE steps.
Could a Status=4 simply mean a WARNING occurred, or does it point to a specific server configuration issue that forces warnings to escalate to this exit code?
Key Log Snippet:
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="&_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;
What is the most likely cause of a persistent Status=4 when using PROC IMPORT XLSX and PROC APPEND FORCE on an STP Server?