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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Teradata 4 Data Types and the <strong>SAS</strong>_PUT( ) Function 819For more in<strong>for</strong>mation, see “Using the <strong>SAS</strong>_PUT( ) Function in the TeradataEDW” on page 827.Deployed Components <strong>for</strong> In–Database ProcessingComponents that are deployed to Teradata <strong>for</strong> in–database processing are containedin either an RPM file (Linux) or a PKG file (MP–RAS) in the <strong>SAS</strong> Software Depot.The component that is deployed is the <strong>SAS</strong> <strong>9.2</strong> Formats Library <strong>for</strong> Teradata. The<strong>SAS</strong> <strong>9.2</strong> Formats Library <strong>for</strong> Teradata contains many of the <strong>for</strong>mats that are availablein Base <strong>SAS</strong>. After you install the <strong>SAS</strong> <strong>9.2</strong> Formats Library and run the%INDTD_PUBLISH_FORMATS macro, the <strong>SAS</strong>_PUT( ) function can call these <strong>for</strong>mats.Note: The <strong>SAS</strong> Scoring Accelerator <strong>for</strong> Teradata also uses these libraries. For morein<strong>for</strong>mation about this product, see the <strong>SAS</strong> Scoring Accelerator <strong>for</strong> Teradata: User’sGuide. 4For more in<strong>for</strong>mation about creating the <strong>SAS</strong> Software Depot, see the instructions inyour Software Order e-mail. For more in<strong>for</strong>mation about installing and configuringthese components, see the <strong>SAS</strong> In-Database Products: Administrator’s Guide.User-Defined Formats in the Teradata EDWYou can use PROC FORMAT to create user-defined <strong>for</strong>mats and store them in a<strong>for</strong>mat catalog. You can then use the %INDTD_PUBLISH_FORMATS macro to exportthe user-defined <strong>for</strong>mat definitions to the Teradata EDW where the <strong>SAS</strong>_PUT( )function can reference them.If you use the FMTCAT= option to specify a <strong>for</strong>mat catalog in the%INDTD_PUBLISH_FORMATS macro, these restrictions and limitations apply:3 Trailing blanks in PROC FORMAT labels are lost when publishing a picture<strong>for</strong>mat.3 Avoid using PICTURE <strong>for</strong>mats with the MULTILABEL option. You cannotsuccessfully create a CNTLOUT= data set when PICTURE <strong>for</strong>mats are present.This a known issue with PROC FORMAT.3 If you are using a character set encoding other than Latin1, picture <strong>for</strong>mats arenot supported. The picture <strong>for</strong>mat supports only Latin1 characters.3 If you use the MULTILABEL option, only the first label that is found is returned.For more in<strong>for</strong>mation, see the PROC FORMAT MULTILABEL option in the Base<strong>SAS</strong> Procedures Guide.3 The %INDTD_PUBLISH_FORMATS macro rejects a <strong>for</strong>mat unless theLANGUAGE= option is set to English or is not specified.3 Although the <strong>for</strong>mat catalog can contain in<strong>for</strong>mats, the%INDTD_PUBLISH_FORMATS macro ignores the in<strong>for</strong>mats.3 User-defined <strong>for</strong>mats that include a <strong>for</strong>mat that <strong>SAS</strong> supplies are not supported.Data Types and the <strong>SAS</strong>_PUT( ) FunctionThe <strong>SAS</strong>_PUT( ) function supports direct use of the Teradata data types shown inTable 28.3 on page 820. In some cases, the Teradata database per<strong>for</strong>ms an implicitconversion of the input data to the match the input data type that is defined <strong>for</strong> the<strong>SAS</strong>_PUT( ) function. For example, all compatible numeric data types are implicitlyconverted to FLOAT be<strong>for</strong>e they are processed by the <strong>SAS</strong>_PUT( ) function.

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

Saved successfully!

Ooh no, something went wrong!