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 Netezza 4 Using the <strong>SAS</strong>_PUT( ) Function in the Netezza Data Warehouse 645proc sql noerrorstop;title1 ’Test <strong>SAS</strong>_PUT using Implicit Passthru ’;select distinctPUT(PRICE,Dollar8.2) AS PRICE_Cfrom dblib.mailorderdemo;NETEZZA: AUTOCOMMIT is NO <strong>for</strong> connection 1NETEZZA: AUTOCOMMIT turned ON <strong>for</strong> connection id 1NETEZZA_1: Prepared: on connection 1SELECT * FROM mailorderdemoNETEZZA: AUTOCOMMIT is NO <strong>for</strong> connection 2NETEZZA: AUTOCOMMIT turned ON <strong>for</strong> connection id 2NETEZZA_2: Prepared: on connection 2select distinct cast(sas_put(mailorderdemo."PRICE", ’DOLLAR8.2’) as char(8))as PRICE_C from mailorderdemoNETEZZA_3: Executed: on connection 2Prepared statement NETEZZA_2<strong>ACCESS</strong> ENGINE:SQL statement was passed to the DBMS <strong>for</strong> fetching data.Test <strong>SAS</strong>_PUT using Implicit Passthru 913:42 Thursday, May 7, 2009PRICE_C_______$10.00$12.00$13.59$48.99$54.00$8.00$14.00$27.98$13.99quit;Be aware of these items:3 The SQLMAPPUTTO= system option must be set to <strong>SAS</strong>_PUT to ensure that theSQL processor maps your PUT functions to the <strong>SAS</strong>_PUT( ) function and the<strong>SAS</strong>_PUT( ) reference is passed through to Netezza.3 The <strong>SAS</strong> SQL processor translates the PUT function in the SQL SELECTstatement into a reference to the <strong>SAS</strong>_PUT( ) function.select distinct cast(sas_put("sas"."mailorderdemo"."PRICE", ’DOLLAR8.2’)as char(8)) as "PRICE_C" from "sas"."mailorderdemo"

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

Saved successfully!

Ooh no, something went wrong!