Problem Note 50125: PROC DOCUMENT fails when listing REPORT procedure output
The following error might be generated when using PROC DOCUMENT with both the DETAILS option and the LEVELS=ALL option specified in the LIST statement:
ERROR: Could not restore entry. The document is corrupt, or does not currently support the entry.
The error is generated if an ODS DOCUMENT destination is used to store replayed REPORT procedure output.
To circumvent the problem, remove the DETAILS or the LEVELS=ALL option in the LIST statement.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.3 TS1M0 | 9.4 TS1M1 |
Z64 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | |
Windows 7 Enterprise x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | |
Windows 7 Home Premium x64 | 9.3 TS1M0 | |
Windows 7 Professional 32 bit | 9.3 TS1M0 | |
Windows 7 Professional x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | |
Windows 7 Ultimate x64 | 9.3 TS1M0 | |
Windows Vista | 9.3 TS1M0 | |
Windows Vista for x64 | 9.3 TS1M0 | |
64-bit Enabled AIX | 9.3 TS1M0 | 9.4 TS1M1 |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.4 TS1M1 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.4 TS1M1 |
HP-UX IPF | 9.3 TS1M0 | 9.4 TS1M1 |
Linux | 9.3 TS1M0 | 9.4 TS1M1 |
Linux for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Solaris for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
*
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.
The first PROC DOCUMENT code generates the following error with SAS® 9.3:
ERROR: Could not restore entry. The document is corrupt, or does not currently support the entry.
Workarounds for the error message include removing the DETAILS or LEVELS=ALL options in the LIST statement, and are shown below.
ods _all_ close;
ods document name=first;
proc report data=sashelp.class nowd;
run;
ods document close;
ods listing;
ods document name=second;
/* The first document is replayed when the second document is opened */
proc document name=first;
replay;
run;
quit;
ods document close;
/* Problem: */
proc document name=second;
list / details levels=all;
run;
quit;
/* Workaround 1 */
proc document name=second;
list / levels=all;
run;
quit;
/* Workaround 2 */
proc document name=second;
list / details;
run;
quit;
PROC DOCUMENT fails when listing REPORT procedure output.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2013-07-12 10:38:37 |
Date Created: | 2013-06-06 09:33:11 |