SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 42772: Support for formats and value labels when reading and writing to SPSS (.sav) data sets

DetailsHotfixAboutRate It

SPSS (.sav) files contain value labels that are similar to formats in SAS data sets. The IMPORT and EXPORT procedures have various levels of support for value labels depending on the release of SAS® software.

If you are running SAS® 9.2 TS2M3, both numeric and character formats are supported with the addition of the hot fix found on the Hot Fix tab.

A sample is shown here:

libname mytest "c:\public\"; proc format; value $tx2f 'A'='3A' 'B'='2B' 'C'='1C'; run; /* STEP TWO */ /* EXPORT to sav file */ proc export data=mytest.tx outfile="c:\tx.sav" dbms=sav replace; fmtlib=work.formats; run; proc import out=mytest.tximp datafile="c:\tx.sav" dbms=sav replace; run;

If you are running a SAS® 9.2 prior to TS2M3, numeric formats are supported as value labels in PROC EXPORT only via the FMTLIB feature. Contact Technical Support for character format support.

SAS® 9.1.3 does not support this feature.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to PC FilesMicrosoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M39.2 TS2M3
Microsoft Windows XP 64-bit Edition9.2 TS2M39.2 TS2M3
Microsoft® Windows® for x649.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 for x649.2 TS2M39.2 TS2M3
Microsoft Windows Server 20089.2 TS2M39.2 TS2M3
Microsoft Windows Server 2008 for x649.2 TS2M39.2 TS2M3
Microsoft Windows XP Professional9.2 TS2M39.2 TS2M3
Windows 7 Enterprise 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Enterprise x649.2 TS2M39.2 TS2M3
Windows 7 Home Premium 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Home Premium x649.2 TS2M39.2 TS2M3
Windows 7 Professional 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Professional x649.2 TS2M39.2 TS2M3
Windows 7 Ultimate 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Ultimate x649.2 TS2M39.2 TS2M3
Windows Vista9.2 TS2M39.2 TS2M3
Windows Vista for x649.2 TS2M39.2 TS2M3
64-bit Enabled AIX9.2 TS2M39.2 TS2M3
64-bit Enabled HP-UX9.2 TS2M39.2 TS2M3
64-bit Enabled Solaris9.2 TS2M39.2 TS2M3
HP-UX IPF9.2 TS2M39.2 TS2M3
Linux9.2 TS2M39.2 TS2M3
Linux for x649.2 TS2M39.2 TS2M3
Solaris for x649.2 TS2M39.2 TS2M3
* 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.