User-Defined Formats in the DB2 Database

You can use PROC FORMAT to create user-defined formats and store them in a format catalog. You can then use the %INDB2_PUBLISH_FORMATS macro to export the user-defined format definitions to the DB2 database where the SAS_PUT( ) function can reference them.
For more information about the %INDB2_PUBLISH_FORMATS macro, seePublishing SAS Formats in DB2. For more information about the SAS_PUT( ) function, see Using the SAS_PUT( ) Function in the DB2 Database.