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 DB2 Under z/OS 4 Passing Joins to DB2 Under z/OS 511REPEATRIGHT (RTRIM)SECONDSIGNSINSINHSQRTSTRIPSUBSTRSUMTANTANHTRANWRD (REPLACE)TRIMN (RTRIM)TRUNCUPCASE (UCASE)WEEKDAY (DAYOFWEEK)SQL_FUNCTIONS= ALL allows <strong>for</strong> <strong>SAS</strong> functions that have slightly differentbehavior from corresponding database functions that are passed down to the database.Only when SQL_FUNCTIONS=ALL can the <strong>SAS</strong>/<strong>ACCESS</strong> engine also pass these <strong>SAS</strong>SQL functions to DB2. Due to incompatibility in date and time functions between DB2and <strong>SAS</strong>, DB2 might not process them correctly. Check your results to determinewhether these functions are working as expected.DATEPART (DATE)LENGTHTIMEPART (TIME)TODAY (CURRENT DATE)TRANSLATEBecause none of these functions existed in DB2 be<strong>for</strong>e DB2 V6, these functions arenot passed to the DBMS in DB2 V5. These functions are also not passed to the DBMSwhen you connect using DRDA because there is no way to determine what location youare connected to and which functions are supported there.These functions are passed to the DBMS in DB2 V5, as well as DB2 V6 and later.They are not passed to the DBMS when you connect using DRDA.YEARMONTHDAYPassing Joins to DB2 Under z/OSWith these exceptions, multiple libref joins are passed to DB2 z/OS.3 If you specify the SERVER= option <strong>for</strong> one libref, you must also specify it <strong>for</strong> theothers, and its value must be the same <strong>for</strong> all librefs.

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

Saved successfully!

Ooh no, something went wrong!