SAS/ACCESS Interface to HP Neoview |
Key Information |
For general information about this feature, see About SQL Procedure Interactions. HP Neoview examples are available.
Here are the SQL pass-through facility specifics for the HP Neoview interface.
The dbms-name is NEOVIEW.
The CONNECT statement is required.
PROC SQL supports multiple connections to HP Neoview. If you use multiple simultaneous connections, you must use the alias argument to identify the different connections. If you do not specify an alias, the default neoview alias is used.
The CONNECT statement database-connection-arguments are identical to its LIBNAME connection-options.
You can use the SCHEMA= option only with the SERVER= and PORT= connection options. It is not valid with DSN= in a pass-through connection.
CONNECT Statement Example |
This example, uses the DBCON alias to connection to the ndcs1 HP Neoview server and execute a query. The connection alias is optional.
proc sql; connect to neoview as dbcon (server=ndcs1 schema=TEST user=neo1 password=neopwd1); select * from connection to dbcon (select * from customers where customer like '1%'); quit;
Special Catalog Queries |
SAS/ACCESS Interface to HP Neoview supports the following special queries. You can use the queries to call the ODBC-style catalog function application programming interfaces (APIs). Here is the general format of the special queries:
Neoview::SQLAPI "parameter 1","parameter n" |
is required to distinguish special queries from regular queries.
is the specific API that is being called. Neither Neoview:: nor SQLAPI are case sensitive.
is a quoted string that is delimited by commas.
Within the quoted string, two characters are universally recognized: the percent sign (%) and the underscore (_). The percent sign matches any sequence of zero or more characters, and the underscore represents any single character. To use either character as a literal value, you can use the backslash character (\) to escape the match characters. For example, this call to SQLTables usually matches table names such as myatest and my_test:
select * from connection to neoview (NEOVIEW::SQLTables ","my_test");
Use the escape character to search only for the my_test table:
select * from connection to neoview (NEOVIEW::SQLTables ","my\_test");
SAS/ACCESS Interface to HP Neoview supports these special queries:
returns a list of all tables that match the specified arguments. If you do not specify any arguments, all accessible table names and information are returned.
returns a list of all columns that match the specified arguments. If you do not specify any argument, all accessible column names and information are returned.
returns a list of all columns that compose the primary key that matches the specified table. A primary key can be composed of one or more columns. If you do not specify any table name, this special query fails.
returns a list of the optimal set of columns that uniquely identify a row in the specified table.
returns a list of the statistics for the specified table name, with options of SQL_INDEX_ALL and SQL_ENSURE set in the SQLStatistics API call. If you do not specify any table name argument, this special query fails.
returns information about the data types that the HP Neoview server supports.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.