BBjJdbcOdbcInfo::getHost

Description

In BBj 8.0 and higher, this method returns the connected host name for one of the JDBC/ODBC connections currently open in the BBjServices session.

Syntax

Return Value

Method

string

getHost()

Parameters

None.

Return Value

Returns the name of the connected host for the opened JDBC/ODBC connection.

Remarks

None.

Example

rem 'Retrieve the host name for all open JDBC/ODBC connections within

rem 'the BBjServices session
input "Enter User ID: ",userid$
input "Enter Password: ",password$
admin! = BBjAPI().getAdmin(userid$,password$)
vector! = admin!.getJdbcOdbcInfos()
for i = 0 to vector!.size()-1
    info! = vector!.get(i)
    print str(Info!.getHost())
next i
stop

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.