Usage Note 14549: "ERROR: File MYLIB.FORMATS.CATALOG was created for a different operating system" generated when accessing formats
The following errors occur when data files with permanent formats are used under another operating system:
ERROR: File MYLIB.FORMATS.CATALOG was created for a different
operating system.
ERROR: The format MYFMT was not found or could not be loaded.
Although data sets can be used in different directory-based operating systems, the permanent formats assigned to the variables reference user-defined format catalogs that are stored independently from the data sets. If the format catalogs are created in a different operating system, you will encounter the errors above.
For example, an error is generated when you are running SAS® on Microsoft Windows if the format catalog was created in a UNIX operating environment. Similarly, the errors occur in a 64-bit Windows SAS session when the format catalog was created in a 32-bit Windows SAS session.
The quickest method of circumventing the error is to submit the NOFMTERR system option. The NOFMTERR system option causes SAS to ignore the formats and display the underlying data values of the data set.
If you have the program containing the PROC FORMAT statements, you can run them to create a catalog native to the operating system. (To make a permanent format catalog, use the LIB= option in the PROC FORMAT statement to specify a different target directory for storage. Or you can first remove the offending format catalog from the current directory in order to avoid generating the error described above.)
If you have access to the operating environment in which the formats.sas7bcat file was created, you can write it out to an intermediary file format, such as a CPORT transport file or CNTLOUT= data set. The transport file or data set serves as an intermediary file that can be used under the target environment to re-create the format catalog. For syntax using the CPORT/CIMPORT procedures, see the Full Code tab in SAS Note 38339. For syntax using the CNTLOUT= option in PROC FORMAT, see SAS Note 22194. (Note that using communications software such as FTP to move a transport file or data set requires using the BINARY transfer mode.)
You can use the program in SAS Note 34443, "Determine the operating system and SAS® release in which a catalog was created," to identify which operating system was used to create the format catalog.
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled Solaris | 9.1 TS1B0 | |
z/OS | 9.1 TS1B0 | |
64-bit Enabled AIX | 9.1 TS1B0 | |
OpenVMS Alpha | 9.1 TS1B0 | |
64-bit Enabled HP-UX | 9.1 TS1B0 | |
HP-UX IPF | 9.1 TS1B0 | |
Linux | 9.1 TS1B0 | |
Tru64 UNIX | 9.1 TS1B0 | |
*
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.
"ERROR: File MYLIB.FORMATS.CATALOG was created for a different operating system" might be generated when data files containing formats are processed across operating systems.
Type: | Usage Note |
Priority: | |
Topic: | SAS Reference ==> Formats
|
Date Modified: | 2005-09-26 11:20:42 |
Date Created: | 2005-02-08 14:50:06 |