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.

498 DBLOAD Procedure Specifics <strong>for</strong> DB2 Under z/OS 4 Chapter 16/* create vlib.usacust view */create vlib.usacust.view;select customer state zipcode namefirstorder;subset where customer like ’1%’;run;This next example uses the SERVER= statement to access the SQL/DS tableTestid.Orders from a remote location. Access and view descriptors are then createdbased on the table.libname adlib ’<strong>SAS</strong>-data-library’;libname vlib ’<strong>SAS</strong>-data-library’;proc access dbms=db2;create adlib.customr.access;table=testid.orders;server=testserver;assign=yes;list all;create vlib.allord.view;select ordernum stocknum shipto dateorderd;subset where stocknum = 1279;run;DBLOAD Procedure Specifics <strong>for</strong> DB2 Under z/OSKey In<strong>for</strong>mationSee DBLOAD Procedure <strong>for</strong> general in<strong>for</strong>mation about this feature. DB2 z/OSexamples“Examples” on page 499 are available.<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS supports all DBLOAD procedurestatements in interactive line, noninteractive, and batch modes. Here are the DBLOADprocedure specifics <strong>for</strong> <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS.3 The DBMS= value is DB2.3 Here are the database description statements that PROC DBLOAD uses:SSID=DB2-subsystem-idspecifies the DB2 subsystem ID to connect to at connection time. SSID= isoptional. If you omit it, <strong>SAS</strong> connects to the DB2 subsystem that is specifiedin the <strong>SAS</strong> system option, DB2SSID=. The DB2 subsystem ID is limited tofour characters. See “Settings” on page 514 <strong>for</strong> more in<strong>for</strong>mation.SERVER=DRDA serverspecifies the DRDA server that you want to connect to. SERVER= enablesyou to access DRDA resources stored at remote locations. Check with yoursystem administrator <strong>for</strong> system names. You can connect to only one serverper LIBNAME statement.

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

Saved successfully!

Ooh no, something went wrong!