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 Publishing <strong>SAS</strong> Formats 821Table 28.4Teradata Data Types not Supported by the <strong>SAS</strong>_PUT() FunctionType of DataANSI date and timeGRAPHIC server character setBinary and large objectData TypeINTERVALTIME WITH TIME ZONETIMESTAMP WITH TIME ZONEGRAPHICVARGRAPHICLONG VARGRAPHICCLOBBYTEVARBYTEBLOBIf an incompatible data type is passed to the <strong>SAS</strong>_PUT( ) function, various errormessages can appear in the <strong>SAS</strong> log including these:3 Function <strong>SAS</strong>_PUT does not exist3 Data truncation3 SQL syntax error near the location of the first argument in the <strong>SAS</strong>_PUT functioncallPublishing <strong>SAS</strong> FormatsOverview of the Publishing ProcessThe <strong>SAS</strong> publishing macros are used to publish <strong>for</strong>mats and the <strong>SAS</strong>_PUT( ) functionin the Teradata EDW.The %INDTD_PUBLISH_FORMATS macro creates the files that are needed to buildthe <strong>SAS</strong>_PUT( ) function and publishes these files to the Teradata EDW.The %INDTD_PUBLISH_FORMATS macro also registers the <strong>for</strong>mats that areincluded in the <strong>SAS</strong> <strong>9.2</strong> Formats Library <strong>for</strong> Teradata. This makes many <strong>for</strong>mats that<strong>SAS</strong> supplies available inside Teradata. For more in<strong>for</strong>mation about the <strong>SAS</strong> <strong>9.2</strong>Formats Library <strong>for</strong> Teradata, see “Deployed Components <strong>for</strong> In–Database Processing”on page 819.In addition to <strong>for</strong>mats that <strong>SAS</strong> supplies, you can also publish the PROC FORMATdefinitions that are contained in a single <strong>SAS</strong> <strong>for</strong>mat catalog by using the FMTCAT=option. The process of publishing a PROC FORMAT catalog entry converts thevalue-range-sets, <strong>for</strong> example, 1=’yes’ 2=’no’, into embedded data in Teradata. For morein<strong>for</strong>mation on value-range-sets, see PROC FORMAT in the Base <strong>SAS</strong> Procedures Guide.Note: If you specify more than one <strong>for</strong>mat catalog using the FMTCAT= option, thelast <strong>for</strong>mat that you specify is published. 4The %INDTD_PUBLISH_FORMATS macro per<strong>for</strong>ms the following tasks:3 creates .h and .c files, which are necessary to build the <strong>SAS</strong>_PUT( ) function3 produces a script of Teradata commands that are necessary to register the<strong>SAS</strong>_PUT( ) function in the Teradata EDW3 uses <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Teradata to execute the script and publish the filesto the Teradata EDW

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

Saved successfully!

Ooh no, something went wrong!