%let indconn = server=myserver user=myuserid password=XXXX database=mydb <serveruserid=myserveruserid> <schema=myschema>;
specifies the Netezza server name or the IP address of the server host.
specifies the Netezza user name (also called the user ID) that is used to connect to the database.
specifies the password that is associated with your Netezza user ID.
Tip | Use only PASSWORD=, PASS=, or PW= for the password argument. PWD= is not supported and causes an error to occur. |
specifies the Netezza database that contains the tables and views that you want to access.
specifies the name of the schema where the formats are published.
Restriction | This argument is supported only on Netezza v7.0.3 or later. |
Interaction | The schema that is specified by the %INDNZ_PUBLISH_FORMATS macro’s DBSCHEMA= argument takes precedence over the schema that you specify in the INDCONN macro variable. If you do not specify a schema in the DBSCHEMA= argument or the INDCONN macro variable, the default schema for the target database is used. |
specifies the name of a Netezza database to which the SAS_PUT( ) function and the formats are published. This argument lets you publish the SAS_PUT( ) function and the formats to a shared database where other users can access them.
Interaction | The database that is specified by the DATABASE= argument takes precedence over the database that you specify in the INDCONN macro variable. For more information, see Running the %INDNZ_PUBLISH_FORMATS Macro. |
Tip | It is not necessary that the format definitions and the SAS_PUT( ) function reside in the same database as the one that contains the data that you want to format. You can use the SQLMAPPUTO= system option to specify the database where the format definitions and the SAS_PUT( ) function have been published. |
specifies the name of the database where the SAS_COMPILEUDF function was published.
Default | SASLIB |
See | For more information about publishing the SAS_COMPILEUDF function, see the SAS In-Database Products: Administrator’s Guide. |
specifies the name of the Netezza schema where the SAS_COMPILEUDF function was published.
Default | An empty string |
Restriction | This argument is supported only on Netezza v7.0.3 or later. |
Tip | The SAS_COMPILEUDF function is referenced as <DBCOMPILE>.<SCHEMACOMPILE>.SAS_COMPILEUDF. |
See | For more information about the publishing the SAS_COMPILEUDF function, see the SAS In-Database Products: Administrator’s Guide. |
specifies the name of the database where the SAS Formats Library for Netezza was published.
Default | SASLIB |
Restriction | This argument is supported only on TwinFin systems. |
See | For more information about publishing the SAS Formats Library for Netezza, see the SAS In-Database Products: Administrator’s Guide. |
specifies the name of a Netezza schema to which the SAS Formats Library for Netezza was published.
Default | An empty string |
Restriction | This argument is supported only on Netezza v7.0.3 or later. |
Tip | The SAS_JAZLIB library is referenced as <DBJAZLIB>.<SCHEMAJAZLIB>.SAS_JAZLIB. |
See | For more information about publishing the SAS Formats Library for Netezza, see the SAS In-Database Products: Administrator’s Guide. |
specifies the name of a Netezza schema to which the SAS_PUT( ) function and the formats are published.
Restriction | This argument is supported only on Netezza v7.0.3 or later. |
Interaction | The schema that is specified by the DBSCHEMA= argument takes precedence over the schema that you specify in the INDCONN macro variable. If you do not specify a schema in the DBSCHEMA= argument or the INDCONN macro variable, the default schema for the target database is used. |
specifies the name of the format catalog file that contains all user-defined formats that were created with the FORMAT procedure and are made available in Netezza.
Default | If you do not specify a value for FMTCAT= and you have created user-defined formats in your SAS session, the default is WORK.FORMATS. If you do not specify a value for FMTCAT= and you have not created any user-defined formats in your SAS session, only the formats that SAS supplies are available in Netezza. |
Interaction | If the format definitions that you want to publish exist in multiple catalogs, you must copy them into a single catalog for publishing. |
See | Netezza Considerations and Limitations When Using the FMTCAT= Options |
specifies the name of the Netezza table that contains all formats that the %INDNZ_PUBLISH_FORMATS macro creates and that the SAS_PUT( ) function supports. The format table contains the columns shown in the following table.
Column Name
|
Description
|
---|---|
FMTNAME
|
specifies the name of
the format.
|
SOURCE
|
specifies the origin
of the format. SOURCE can contain one of these values:
SAS
supplied by SAS
PROCFMT
User-defined with PROC
FORMAT
|
Default | If FMTTABLE is not specified, no table is created. You can see only the SAS_PUT( ) function. You cannot see the formats that are published by the macro. |
Interaction | If ACTION=CREATE or ACTION=DROP is specified, messages are written to the SAS log that indicate the success or failure of the table creation or drop. |
specifies that the macro performs one of these actions:
creates a new SAS_PUT( ) function.
overwrites the current SAS_PUT( ) function, if a SAS_PUT( ) function is already registered or creates a new SAS_PUT( ) function if one is not registered.
causes the SAS_PUT( ) function to be dropped from the Netezza database.
Interaction | If FMTTABLE= is specified, both the SAS_PUT( ) function and the format table are dropped. If the table name cannot be found or is incorrect, only the SAS_PUT( ) function is dropped. |
Default | CREATE |
Tip | If the SAS_PUT( ) function was published previously and you specify ACTION=CREATE, you receive warning messages that the function already exists and you are prompted to use REPLACE. If you specify ACTION=DROP and the function does not exist, an error message is issued. |
specifies whether running the code is isolated in a separate process in the Netezza database so that a program fault does not cause the database to stop.
Default | FENCED |
Restriction | The MODE= argument is supported for Netezza 6.0. The MODE argument is ignored for previous versions of Netezza. |
Tip | There are limited resources available in Netezza when you run in fenced mode. For example, there is a limit to the number of columns available. |
See | Modes of Operation |
specifies a directory that contains diagnostic files.
See | Special Characters in Directory Names |
%let indconn = server=netezbase user=user1 password=xxxx
database=mydb;
%indnz_publish_formats(fmtcat= fmtlib.fmtcat);
CREATE FUNCTION sas_put(float , varchar(256)) RETURNS VARCHAR(256) LANGUAGE CPP PARAMETER STYLE npsgeneric CALLED ON NULL INPUT EXTERNAL CLASS NAME 'Csas_putn' EXTERNAL HOST OBJECT '/tmp/tempdir_20090528T135753_616784/formal5.o_x86' EXTERNAL NSPU OBJECT '/tmp/tempdir_20090528T135753_616784/formal5.o_diab_ppc'