SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 31711: Formatting errors might occur when exporting SAS® data sets to Stata

DetailsHotfixAboutRate It

When you use the EXPORT procedure to export a SAS data set with user-defined formats to Stata, the following error might occur:

PROC EXPORT
 DATA= WORK.test_format
 OUTFILE="C:\temp\fmt_test.dta"
 DBMS=DTA REPLACE;
RUN;

ERROR: The format FMT_NU was not found or could not be loaded.

User-defined format names appear to be truncated when exporting to Stata (.dta), leading to a format load error. The correct format name in the example above is FMT_NUM.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to PC FilesMicrosoft® Windows® for x649.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Server9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M39.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M39.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M39.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M39.2 TS1M0
Microsoft Windows XP Professional9.1 TS1M39.2 TS1M0
Windows Vista9.1 TS1M39.2 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.