Problem Note 41709: "Hexadecimal value 0X is an invalid character" error running a SAS® Stored Process using SAS® Enterprise Guide or SAS® Add-in for Microsoft Office
When running a SAS® Stored Process using SAS® Enterprise Guide® or
SAS® Add-in for Microsoft Office, an error message will be displayed if the output contains an unprintable character.The error message will be similar to the following:
An error occurred executing the stored process job "stp_name_here"
'invalid character here', hexadecimal value 0x11, is an invalid character.
Line 210, position 89.
This problem usually occurs when a SAS data set contains unprintable
characters and a SAS Stored Process reads this data and attempts
to create a report that contains the unprintable characters.
You can avoid this problem by identifying and removing the
unprintable characters. As an example, the following
code identifies unprintable characters that exist
in a variable called value in a data set called
baddata. The log file will include information about
observations that contain unprintable characters. The new data set
will contain only observations where the value
variable does not contain unprintable characters.
data good;
set baddata;
/* Check value variable for unprintable characters */
notpr = notprint(value);
/* Output record if it does not contain any unprintable characters */
if notpr = 0 then /* Value was okay */
output;
else do; /* Output message to the log file */
badchar=substr(value,notpr);
put "*UNPRINTABLE Character exists in this record*";
put "Hex Value: " badchar= $hex2.;
put _all_;
end;
run;
proc print data=good;
run;
/* If you know the value of the unprintable character, you */
/* can remove it with the COMPRESS function or translate it */
/* to another character with the TRANSLATE function. */
data good2;
set baddata;
value = compress(value,'11'x); /* Remove Hex '11'x character */
/* value = translate(value,' ','11'x); */
run;
Operating System and Release Information
SAS System | SAS Enterprise Guide | Microsoft® Windows® for x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 for x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2008 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows Server 2008 for x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Enterprise 32 bit | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Enterprise x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Home Premium 32 bit | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Home Premium x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Professional 32 bit | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Professional x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Ultimate 32 bit | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows 7 Ultimate x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows Vista | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
Windows Vista for x64 | 4.3 | 4.3 | 9.2 TS2M3 | 9.3 TS1M0 |
*
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 or
SAS® Add-in for Microsoft Office, an error message will
be displayed if the output contains an unprintable character.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2010-12-09 14:35:08 |
Date Created: | 2010-11-30 12:11:26 |