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.

684 Arguments 4 Chapter 24UDL_FILE=path-and-file-namespecifies the path and filename <strong>for</strong> a Microsoft universal data link (UDL). Forexample, you could specifyUDL_FILE="C:\WinNT\profiles\me\desktop\MyDBLink.UDL" This optiondoes not support <strong>SAS</strong> filerefs. SYSDBMSG is not set on successfulcompletion. For more in<strong>for</strong>mation, see Microsoft documentation about theData Link API. This option overrides any values that are set with theINIT_STRING=, PROVIDER=, and PROPERTIES= options.This connection option is available only when you use OLE DB Services.INIT_STRING=’property-1=value-1’specifies an initialization string, enabling you to bypass the interactiveprompting interface yet still use OLE DB Services. (This option is notavailable if OLEDB_SERVICES=NO.) Use a semicolon to separate properties.After you connect to a data source, <strong>SAS</strong> returns the complete initializationstring to the macro variable SYSDBMSG, which stores the connectionin<strong>for</strong>mation that you specify in the prompting window. You can reuse theinitialization string to make automated connections or to specify connectionin<strong>for</strong>mation <strong>for</strong> batch jobs. For example, assume that you specify thisinitialization string:init_string=’Provider=SQLOLEDB;Password=dbmgr1;PersistSecurity Info=True;User ID=rachel;Initial Catalog=users;Data Source=dwtsrv1’;Here is what the content of the SYSDBMSG macro variable would be:OLEDB: Provider=SQLOLEDB;Password=dbmgr1;Persist Security Info=True;User ID=rachel;Initial Catalog=users;Data Source=dwtsrv1;If you store this string <strong>for</strong> later use, delete the OLEDB: prefix and anyinitial spaces be<strong>for</strong>e the first listed option. There is no default value.However, if you specify a null value <strong>for</strong> this option, the OLE DB Provider <strong>for</strong>ODBC (MSDASQL) is used with your default data source and its properties.See your OLE DB documentation <strong>for</strong> more in<strong>for</strong>mation about these defaultvalues. This option overrides any values that are set with the PROVIDER=and PROPERTIES= options. To write the initialization string to the <strong>SAS</strong> log,submit this code immediately after connecting to the data source:%put %superq(SYSDBMSG);Only these connection options are available when you connect directly to aprovider.COMPLETE=YES | NOspecifies whether <strong>SAS</strong> attempts to connect to the data source withoutprompting you <strong>for</strong> connection in<strong>for</strong>mation. If you specify COMPLETE=YESand the connection in<strong>for</strong>mation that you specify in your LIBNAME statementis sufficient, then <strong>SAS</strong> makes the connection and does not prompt you <strong>for</strong>additional in<strong>for</strong>mation. If you specify COMPLETE=YES and the connectionin<strong>for</strong>mation that you specify in your LIBNAME statement is not sufficient,the provider’s dialog box prompts you <strong>for</strong> additional in<strong>for</strong>mation. You canenter optional in<strong>for</strong>mation as well as required in<strong>for</strong>mation in the dialog box.NO is the default value. COMPLETE= is available only when you setOLEDB_SERVICES=NO and you specify a provider. It is not available in theSQL pass-through facility. Specify no more than one of these options on eachLIBNAME statement: COMPLETE=, REQUIRED=, PROMPT=.

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

Saved successfully!

Ooh no, something went wrong!