Problem Note 40329: "ERROR: Informat n. is incorrect for variable X." received when closing the Column Attributes window in Viewtable
When specifying a user-defined format for a column, you might receive an informat error upon exiting the Column Attributes window.
To illustrate, submit the following code within the SAS Editor window:
proc format;
value foo
1="This is a long label greater than 32 characters";
run;
data test;
format x foo.;
x=1;
run;
|
Open the table into Viewtable, and open the Column Attributes window for column X. You will see the following information:
Format: Foo47.
Informat: 47.
End out of the Column Attributes window and you will see the following error in
the SAS log:
ERROR: Informat 47. is incorrect for variable x.
This error appears to occur if you have not specified a similar user-defined informat for the column, and when the width of the formatted value is greater than 32. If the
length of the formatted value is less than 32, this error does not occur. Also, if a similar informat is specified, then this error does not occur.
Because Viewtable enables you to both view and edit your data, as a best practice, when using Viewtable to edit data, you should create corresponding informats for your user-defined formats.
For example, you can define a similar informat to the above format by using code like the following:
proc format;
invalue foo
"This is a long label greater than 32 characters"=1 other=0;
run;
|
Operating System and Release Information
SAS System | Base SAS | z/OS | 9 TS M0 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | 9.4 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9 TS M0 | 9.4 TS1M0 |
64-bit Enabled AIX | 9 TS M0 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9 TS M0 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9 TS M0 | 9.4 TS1M0 |
HP-UX IPF | 9 TS M0 | 9.4 TS1M0 |
Linux | 9 TS M0 | 9.4 TS1M0 |
OpenVMS Alpha | 9 TS M0 | 9.4 TS1M0 |
Tru64 UNIX | 9 TS M0 | 9.4 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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2010-07-19 16:51:33 |
Date Created: | 2010-07-13 14:35:45 |