13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Netezza 4 Publishing <strong>SAS</strong> Formats 641Tips <strong>for</strong> Using the %INDNZ_PUBLISH_FORMATS Macro3 Use the ACTION=CREATE option only the first time that you run the%INDNZ_PUBLISH_FORMATS macro. After that, use ACTION=REPLACE orACTION=DROP.3 The %INDNZ_PUBLISH_FORMATS macro does not require a <strong>for</strong>mat catalog. Topublish only the <strong>for</strong>mats that <strong>SAS</strong> supplies, you need to have either no <strong>for</strong>matcatalog or an empty <strong>for</strong>mat catalog. You can use this code to create an empty<strong>for</strong>mat catalog in your WORK directory be<strong>for</strong>e you publish the PUT function andthe <strong>for</strong>mats that <strong>SAS</strong> supplies:proc <strong>for</strong>mat;run;3 If you modify any PROC FORMAT entries in the source catalog, you mustrepublish the entire catalog.3 When <strong>SAS</strong> parses the PUT function, <strong>SAS</strong> checks to make sure that the <strong>for</strong>mat is aknown <strong>for</strong>mat name. <strong>SAS</strong> looks <strong>for</strong> the <strong>for</strong>mat in the set of <strong>for</strong>mats that aredefined in the scope of the current <strong>SAS</strong> session. If the <strong>for</strong>mat name is not definedin the context of the current <strong>SAS</strong> session, the <strong>SAS</strong>_PUT( ) function is returned tothe local <strong>SAS</strong> session <strong>for</strong> processing.3 Using both the SQLREDUCEPUT= system option (or the PROC SQLREDUCEPUT= option) and SQLMAPPUTTO= can result in a significantper<strong>for</strong>mance boost. First, SQLREDUCEPUT= works to reduce as many PUTfunctions as possible. Then you can map the remaining PUT functions to<strong>SAS</strong>_PUT( ) functions, by setting SQLMAPPUTTO= <strong>SAS</strong>_PUT.3 If the %INDNZ_PUBLISH_FORMATS macro is executed between two procedurecalls, the page number of the last query output is increased by two.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!