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.

512 <strong>SAS</strong> System Options, Settings, and Macros <strong>for</strong> DB2 Under z/OS 4 Chapter 163 If you specify the DIRECT_SQL= option <strong>for</strong> one or multiple librefs, you must notset it to NO, NONE, or NOGENSQL.For completeness, the portable code checks these options, regardless of the engine:3 DBCONINIT=3 DBCONTERM=3 DBLIBINIT=3 DBLIBTERM=3 DIRECT_EXE=3 DIRECT_SQL=3 PRESERVE_COL_NAMES=3 PRESERVE_TAB_NAMES=For more in<strong>for</strong>mation about when and how <strong>SAS</strong>/<strong>ACCESS</strong> passes joins to the DBMS,see “Passing Joins to the DBMS” on page 43.<strong>SAS</strong> System Options, Settings, and Macros <strong>for</strong> DB2 Under z/OSSystem OptionsYou can use these <strong>SAS</strong> system options when you start a <strong>SAS</strong> session that accessesDB2 under z/OS.DB2DBUG | NODB2DBUGused to debug <strong>SAS</strong> code. When you submit a <strong>SAS</strong> statement that accesses DB2data, DB2DBUG displays any DB2 SQL queries (generated by <strong>SAS</strong>) that areprocessed by DB2. The queries are written to the <strong>SAS</strong> log. NODB2DBUG is thedefault.For example, if you submit a PROC PRINT statement that references a DB2table, the DB2 SQL query displays in the <strong>SAS</strong> log. <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2under z/OS generates this query.libname mylib db2 ssid=db2;proc print data=mylib.staff;run;proc sql;select * from mylib.staf<strong>for</strong>der by idnum;quit;DB2 statements that appear in the <strong>SAS</strong> log are prepared and described in orderto determine whether the DB2 table exists and can be accessed.DB2DECPT=decimal-valuespecifies the setting of the DB2 DECPOINT= option. The decpoint-value argumentcan be a period (.) or a comma (,). The default is a period (.).DB2DECPT= is valid as part of the configuration file when you start <strong>SAS</strong>.DB2IN= ’database-name.tablespace-name’ | ’DATABASE database-name’enables you to specify the database and tablespace in which you want to create anew table. The DB2IN= option is relevant only when you are creating a new table.

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

Saved successfully!

Ooh no, something went wrong!