SAS enables you to create user-defined formats that execute instructions for displaying data values. For example, you might create a format that spells out an abbreviation, or that changes a numeric code to a more easily understood character string. To make existing user-defined formats available for use in clients such as SAS® Visual Analytics, SAS® Information Map Studio, and SAS® Data Integration Studio, you store a copy of your format catalog in a file location that is accessible to the SAS® Application Server that is being used by those applications.
For example, if you are using the default SAS Application Server (named SASApp) and your catalog is named formats.sas7bcat, then you simply place a copy of formats.sas7bcat in SAS-config-dir/Lev1/SASApp/SASEnvironment/SASFormats.
This note contains the following topics:
Note: For more information about SAS system options, how to create a format catalog, how to apply formats to your data, and managing format catalogs on multiple machines, see Additional resources.
There are two related configuration files for the workspace server: sasv9.cfg and sasv9_usermods.cfg. If you are using the default SAS Application Server, these files are located in a directory such as <sas-config-dir>/Lev1/SASApp/.
In the initial configuration, the sasv9.cfg file includes the following lines:
The SET system option assigns the default libref (APFMTLIB) and the relative path to the storage location (SASEnvironment/SASFormats) for the format catalogs. The FMTSEARCH system option specifies to search for the format catalog in the location identified by SET system option. Since the FMTSEARCH option does not specify a catalog name, SAS assumes the catalog in APFMTLIB is named formats.sas7bcat.
Do not make changes directly to the sasv9.cfg file. Instead, as explained in this note, use the sasv9_usermods.cfg file to override the default settings.
If the catalog that you are storing in the default location is not named formats, then you can easily specify a different catalog name. For example, suppose that your catalog is named usrfmt. Here are the steps to point to usrfmt:
Note: If SAS is running on a UNIX server, you must enter your libref using uppercase letters. For example, APFMTLIB must be all uppercase.
Your default location can contain catalogs in addition to the one named formats. For example, suppose that your default location also contains catalogs named format2 and format3. Here are the steps to reference those catalogs:
Note: If SAS is running on a UNIX server, you must enter your libref using uppercase letters. For example, APFMTLIB must be all uppercase.
You can specify format locations in addition to the default location. For example, suppose that you also store format catalogs in C:\SAS\Config\Lev1\SASApp\MoreFormats. Here are the steps to point to catalogs in that additional location:
Note: If SAS is running on a UNIX server, you must enter your libref using uppercase letters. For example, APFMTLIB and FMTLOC2 must be all uppercase.
You do not have to store your catalogs in the location specified by the SET option in the sasv9.cfg file, as long as the new location is still accessible to the SAS Application Server used by the clients. For example, suppose that your catalogs are stored in C:\SAS\Config\Lev1\SASApp\MoreFormats. Here are the steps to use the same default libref (APFMTLIB) but point to your preferred location instead of the default location:
If you have more than one catalog in the new location, then use this form:
Note: If SAS is running on a UNIX server, you must enter your libref using uppercase letters. For example, APFMTLIB must be all uppercase.
Instead of specifying the location of your format catalogs directly in the sasv9_usermods.cfg file, you can point to a .cfg file that contains the location of your catalogs. For example, suppose that you have a format catalog named newcat. The catalog is located in C:\SAS\Config\Lev1\SASApp\MoreFormats. You want to use the libref FMTLOC2. Here are the steps to use a .cfg file to point to that catalog:
.
cfg extension. For example, you might name it fmtfile.cfg..
cfg file.Note: If SAS is running on a UNIX server, you must enter your libref using uppercase letters. For example, FMTLOC2 must be all uppercase.
In general, you can use your custom formats in SAS Visual Analytics. For information about support for user-defined formats in SAS Visual Analytics, see SAS Note 47100.
User-defined formats are not supported if the library is allocated with the META engine. For more information, see SAS Note 43378.
When building cubes in the Cube Designer, you can enter the name of a user-defined format. However, a list of available formats is not presented.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS BI Server | Linux | 9.2 TS2M0 | |
HP-UX IPF | 9.2 TS2M0 | |||
64-bit Enabled Solaris | 9.2 TS2M0 | |||
64-bit Enabled HP-UX | 9.2 TS2M0 | |||
64-bit Enabled AIX | 9.2 TS2M0 | |||
Windows Vista | 9.2 TS2M0 | |||
Windows Vista for x64 | 9.2 TS2M0 | |||
Microsoft Windows XP Professional | 9.2 TS2M0 | |||
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | |||
Microsoft Windows Server 2008 R2 | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |||
Microsoft® Windows® for x64 | 9.2 TS2M0 | |||
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |||
z/OS | 9.2 TS2M0 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |||
Linux for x64 | 9.2 TS2M0 | |||
Solaris for x64 | 9.2 TS2M0 | |||
SAS System | SAS Enterprise BI Server | Solaris for x64 | 9.2 TS2M0 | |
Linux for x64 | 9.2 TS2M0 | |||
Linux | 9.2 TS2M0 | |||
HP-UX IPF | 9.2 TS2M0 | |||
64-bit Enabled Solaris | 9.2 TS2M0 | |||
64-bit Enabled HP-UX | 9.2 TS2M0 | |||
64-bit Enabled AIX | 9.2 TS2M0 | |||
Windows Vista for x64 | 9.2 TS2M0 | |||
Windows Vista | 9.2 TS2M0 | |||
Microsoft Windows XP Professional | 9.2 TS2M0 | |||
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | |||
Microsoft Windows Server 2008 R2 | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |||
Microsoft® Windows® for x64 | 9.2 TS2M0 | |||
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |||
z/OS | 9.2 TS2M0 |
Type: | Usage Note |
Priority: | |
Topic: | Data Management ==> Data Sources ==> Information map Data Management ==> Data Sources ==> Metadata Data Management ==> Manipulation and Transformation ==> User Written Formats Query and Reporting ==> Interactive Querying Query and Reporting SAS Reference ==> Formats ==> Formats SAS Reference ==> System Options ==> FMTSEARCH= System Administration ==> Servers ==> Integration Technologies System Administration ==> Servers ==> Metadata |
Date Modified: | 2023-06-16 15:36:08 |
Date Created: | 2010-06-24 16:30:33 |