Usage Note 39384: "Multiple XML Declarations were found" error when running a SAS® Stored Process
When running a SAS
® Stored Process using
SAS
® Enterprise Guide
®,
the following error message might occur if the SAS Stored Process code contains
multiple %STPBEGIN statements.
Unable to read SAS Report file. Multiple XML declarations were found.
Unexpected XML declaration. The XML declaration must be the first
node in the document, and no white space characters are allowed to
appear before it.
As an example, the following code will result in this
error message.
%stpbegin;
%stpbegin; /* Remove this extra statement */
proc print data=sashelp.class;
run;
%stpend;
%stpend; /* Remove this extra statement */
You can solve this problem by removing the extra %STPBEGIN
and %STPEND statements.
Note that SAS Enterprise Guide will insert
%STPBEGIN and %STPEND statements in your code
unless you uncheck the option:
Include Code for ►
Stored Process macros
in the SAS Code window when you modify a SAS Stored Process.
Be sure to uncheck this option if you
encounter this problem.
Operating System and Release Information
| SAS System | SAS Integration Technologies | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
| Microsoft® Windows® for x64 | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
| Microsoft Windows XP Professional | 9.2 TS2M0 | |
| Windows Vista | 9.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When running a SAS® Stored Process using
SAS® Enterprise Guide®
the following error message might occur if the SAS Stored Process code contains
multiple %STPBEGIN statements:
Unable to read SAS Report file. Multiple XML declarations were found.
| Date Modified: | 2010-04-23 13:19:21 |
| Date Created: | 2010-04-19 16:22:00 |