Problem Note 50480: A "Key not found" error occurs when using ODS LAYOUT and specifying different styles between graphics procedures
The following error is generated when you attempt to change ODS styles between two SAS/GRAPH or Statistical Graphics (SG) procedures in order to display them differently in a PDF file using ODS LAYOUT:
ERROR: Key not found.
ERROR: Fatal ODS error has occurred. Unable to continue processing this output destination.
A PDF file is produced, but no images are written to the file.
You must remove the ODS LAYOUT statements or remove the style change between the two procedures in order to prevent the error.
The sample code below reproduces the error.
data planets;
input planet $ distance;
datalines;
Mercury 43.4
Venus 68
Earth 94.5
Mars 155
;
run;
quit;
ods pdf style=styles.sasweb file="test.pdf";
ods layout start rows=2;
proc gchart data=planets;
vbar3d planet / sumvar=distance
subgroup=planet
raxis=axis1
nolegend
sum
;
axis1 label=("Millions of Miles");
run;
ods pdf style=styles.journal;
proc gchart data=planets;
vbar3d planet / sumvar=distance
subgroup=planet
raxis=axis1
nolegend
sum
;
run;
quit;
ods layout end;
ods _all_ close;
ods preferences;
|
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.3 TS1M2 | 9.4 TS1M1 |
Z64 | 9.3 TS1M2 | 9.4 TS1M1 |
Microsoft® Windows® for x64 | 9.3 TS1M2 | 9.4 TS1M1 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 R2 for x64 | 9.3 TS1M2 | 9.4 TS1M1 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | 9.4 TS1M1 |
Microsoft Windows XP Professional | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | |
Windows 7 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M1 |
Windows 7 Home Premium 32 bit | 9.3 TS1M2 | |
Windows 7 Home Premium x64 | 9.3 TS1M2 | |
Windows 7 Professional 32 bit | 9.3 TS1M2 | |
Windows 7 Professional x64 | 9.3 TS1M2 | 9.4 TS1M1 |
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | |
Windows 7 Ultimate x64 | 9.3 TS1M2 | |
Windows Vista | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3 TS1M2 | 9.4 TS1M1 |
64-bit Enabled HP-UX | 9.3 TS1M2 | 9.4 TS1M1 |
64-bit Enabled Solaris | 9.3 TS1M2 | 9.4 TS1M1 |
HP-UX IPF | 9.3 TS1M2 | 9.4 TS1M1 |
Linux | 9.3 TS1M2 | 9.4 TS1M1 |
Linux for x64 | 9.3 TS1M2 | 9.4 TS1M1 |
Solaris for x64 | 9.3 TS1M2 | 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.
A "Key not found" error is generated when you attempt to change styles between graphics procedures when using ODS LAYOUT.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2013-08-08 15:21:49 |
Date Created: | 2013-07-22 21:10:40 |