![]() | ![]() | ![]() |
Typically, to make user-defined formats available for selection in SAS Business Intelligence clients such as SAS® Information Map Studio and SAS® Data Integration Studio, you place a catalog named formats.sas7bcat in a designated directory on each machine that is hosting a SAS Workspace Server.
SAS-config-dir\Lev1\SASApp\SASEnvironment\SASFormats. ("SASApp" is the default subdirectory name.)SAS-config-dir\Lev1\SASMain\SASEnvironment\SASFormats. If the SAS Workspace Server is not on the same machine as the SAS Metadata Server, then the location is typically SAS-config-dir\Lev1\SASApp\SASEnvironment\SASFormats.
After following the instructions in this note, restart your object spawner so that you are working with a new SAS session.
This note contains the following topics:
Note: When building cubes in the Cube Designer, you can type in the name of a user-defined format; however, a list of available formats is not presented.
In SAS 9.2, there are two related configuration files for the workspace server: sasv9.cfg and sasv9_usermods.cfg. Typically, these files are located in C:\SAS\EntBIServer\Lev1\SASApp. In the initial configuration, the sasv9.cfg file has the following lines:
-set APFMTLIB "SASEnvironment/SASFormats"
-insert fmtsearch APFMTLIB
|
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.
In SAS 9.1, you make your modifications directly to the sasv9.cfg file. Typically, this file is located in C:\SAS\EBI36\Lev1\SASMain. In the initial configuration, the sasv9.cfg file has the following line:
-set library ("SASEnvironment/sasFormats")
|
SAS expects your format catalog to be named formats. If your catalog is, for example, named usrfmt instead of formats, then you can modify the configuration files to specify the correct name.
Locate the sasv9_usermods.cfg file for the workspace server. For example, the location might be C:\SAS\EntBIServer\Lev1\SASApp. Open the sasv9_usermods.cfg file in a text editor, and add the following line to point to the correct catalog.
-insert fmtsearch APFMTLIB.usrfmt
|
Locate the sasv9.cfg file for the workspace server. For example, the location might be C:\SAS\EBI36\Lev1\SASMain. Beneath the -set library ("SASEnvironment/sasFormats") line, add the following line, where usrfmt is the name of your formats catalog.
-fmtsearch (library.usrfmt)
|
If you have more than one format catalog, place a copy of each catalog in the designated directory along with the formats.sas7bcat catalog. Then, modify the configuration files to specify the additional catalogs.
Locate the sasv9_usermods.cfg file for the workspace server. For example, the location might be C:\SAS\EntBIServer\Lev1\SASApp. Open the sasv9_usermods.cfg file in a text editor, and add the following line to point to your other format catalog. In this example, two additional catalogs are referenced: formats2 and formats3.
-insert fmtsearch (APFMTLIB.formats2 APFMTLIB.formats3)
|
Locate the sasv9.cfg file for the workspace server. For example, the location might be C:\SAS\EBI36\Lev1\SASMain. Beneath the -set library ("SASEnvironment/sasFormats") line, add the following line, where formats2 is the additional catalog. Specify other catalogs as needed, separated by a space (see previous example).
-fmtsearch (library.formats library.formats2)
|
If you do not want to store your format catalogs in the default SASFormats directory, you can specify a different location.
Locate the sasv9_usermods.cfg for the workspace server. For example, the location might be C:\SAS\EntBIServer\Lev1\SASApp. Open the file in a text editor and add the following lines to point to your preferred catalog location. Enter a fully qualified path (as shown in the example), not a relative path.
-set APFMTLIB "C:\Program Files\SAS\SASFoundation\9.2\Formats"
-insert fmtsearch APFMTLIB
|
Locate the sasv9.cfg file for the workspace server. For example, the location might be C:\SAS\EBI36\Lev1\SASMain. Open the file in a text editor. Edit the directory path in the -set option to point to your preferred catalog location. Enter a fully qualified path (as shown in the example), not a relative path.
-set library ("C:\Program Files\SAS\SAS 9.1\Formats")
|
The following code provides a simple example of how to add a user-defined format to a catalog. The code adds a user-defined character format named $GENDER to formats.sas7bcat in the APFMTLIB library, which is located at C:\SAS\EntBIServer\Lev1\SASApp\SASEnvironment\SASFormats.
libname APFMTLIB 'C:\SAS\EntBIServer\Lev1\SASApp\SASEnvironment\SASFormats';
proc format library=APFMTLIB;
value $ gender
'F'='Female'
'M'='Male'
' '='Other'
;
run;
|
To add the new format to a different catalog in that location, you can append the catalog name to the libref, as shown next.
proc format library=APFMTLIB.formats2;
|
The SAS Workspace Server is defined within a SAS Application Server, which is logical container for a set of application server components that execute code.) For more information about the SAS Application Server, see Overview of SAS Application Servers (version 9.2), or What Is a SAS Application Server? (version 9.1).
For more information about the FMTSEARCH option, see FMTSEARCH= System Option
For more information about creating formats, see PROC FORMAT Statement.
For information about using a configuration file to define a list of format catalogs, see Create a User-Defined Formats Configuration File.
For information about managing format catalogs on multiple machines, see the following references: Managing Data and Catalogs for Servers on Multiple Machines (version 9.2), or Data and Catalogs for Servers on Multiple Machines (version 9.1).
For information about why user-defined formats might not appear in SAS® Information Map Studio, see SAS Note 40181.
| Product Family | Product | System | SAS Release | |
| Reported | Fixed* | |||
| SAS System | SAS Enterprise BI Server | z/OS | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |||
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |||
| Windows Vista | 9.1 TS1M3 SP4 | |||
| Windows Vista for x64 | 9.1 TS1M3 SP4 | |||
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |||
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |||
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |||
| HP-UX IPF | 9.1 TS1M3 SP4 | |||
| Linux | 9.1 TS1M3 SP4 | |||
| Linux on Itanium | 9.1 TS1M3 SP4 | |||
| Solaris for x64 | 9.1 TS1M3 SP4 | |||
| SAS System | SAS BI Server | z/OS | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |||
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |||
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |||
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |||
| Windows Vista | 9.1 TS1M3 SP4 | |||
| Windows Vista for x64 | 9.1 TS1M3 SP4 | |||
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |||
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |||
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |||
| HP-UX IPF | 9.1 TS1M3 SP4 | |||
| Linux | 9.1 TS1M3 SP4 | |||
| Linux on Itanium | 9.1 TS1M3 SP4 | |||
| Solaris for x64 | 9.1 TS1M3 SP4 | |||
| 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: | 2010-07-05 19:51:19 |
| Date Created: | 2010-06-24 16:30:33 |



