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.

134 DBPROMPT= LIBNAME Option 4 Chapter 10DBPROMPT= LIBNAME OptionSpecifies whether <strong>SAS</strong> displays a window that prompts the user to enter DBMS connectionin<strong>for</strong>mation be<strong>for</strong>e connecting to the DBMS in interactive mode.Default value: NOValid in: <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementInteraction: DEFER= LIBNAME optionDBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, Greenplum, HPNeoview, In<strong>for</strong>mix, Microsoft SQL Server, MySQL, Netezza, ODBC, Oracle, Sybase,Sybase IQ, TeradataSyntaxDBPROMPT=YES | NOSyntax DescriptionYESspecifies that <strong>SAS</strong> displays a window that interactively prompts you <strong>for</strong> the DBMSconnection options the first time the libref is used.NOspecifies that <strong>SAS</strong> does not display the prompting window.DetailsIf you specify DBPROMPT=YES, it is not necessary to provide connection options withthe LIBNAME statement. If you do specify connection options with the LIBNAMEstatement and you specify DBPROMPT=YES, then the connection option values aredisplayed in the window (except <strong>for</strong> the password value, which appears as a series ofasterisks). You can override all of these values interactively.The DBPROMPT= option interacts with the DEFER= LIBNAME option to determinewhen the prompt window appears. If DEFER=NO, the DBPROMPT window openswhen the LIBNAME statement is executed. If DEFER=YES, the DBPROMPT windowopens the first time a table or view is opened. The DEFER= option normally defaults toNO but defaults to YES if DBPROMPT=YES. You can override this default by explicitlysetting DEFER=NO.The DBPROMPT window usually opens only once <strong>for</strong> each time that the LIBNAMEstatement is specified. It might open multiple times if DEFER=YES and the connectionfails when <strong>SAS</strong> tries to open a table. In these cases, the DBPROMPT window opensuntil a successful connection occurs or you click Cancel .The maximum password length <strong>for</strong> most of the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME interfaces is32 characters.Oracle: You can enter 30 characters <strong>for</strong> the USERNAME and PASSWORD and up to70 characters <strong>for</strong> the PATH, depending on your plat<strong>for</strong>m.Teradata: You can enter up to 30 characters <strong>for</strong> the USERNAME and PASSWORD.ExamplesIn the following example, the DBPROMPT window does not open when theLIBNAME statement is submitted because DEFER=YES. The DBPROMPT window

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

Saved successfully!

Ooh no, something went wrong!