News
Abstract
Db2 Connect V10.1 and IBM i 7.1 provide naming mode control through the SQL_ATTR_DBC_SYS_NAMING connection attribute.
Content
You are in: IBM i Technology Updates > Db2 for i - Technology Updates > Db2 for i Functional Enhancements > Db2 Connect - system naming attribute
System naming attribute
SQL_ATTR_DBC_SYS_NAMING is used on the sqlsetconnectattr() API.
SQL_TRUEswitches the connection to system naming.SQL_FALSEswitches the connection to SQL naming.
sqlsetconnectattr() can be called before or after a connection is made.
SET PATH = *LIBL can be used to reset the path for system naming use.
This support is implemented through a special package flow that runs at execute time.
Related detail
Connection attributes (CLI) list
Example
Typical execution:
> > > quickc 1 1 sysnam rwpgmr rwp2gmr > sqlallocstmt 1 1 > sqlsetconnectattr 1 SQL_ATTR_DBC_SYS_NAMING SQL_TRUE > sqlexecdirec 1 "create schema ashok" -3 > sqlexecdirec 1 "set current schema ashok" -3 > sqlexecdirec 1 "create table ashok/emp1 (id1 int)" -3
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z000000cwEgAAI","label":"Data Access-\u003ESQL CLI"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0;7.4.0;7.5.0;7.6.0"}]
Was this topic helpful?
Document Information
Modified date:
27 November 2026
UID
ibm11167334