Neoview Script Guide (R2.2)

hostname
specifies the host name or IP address of the database platform to which you want the client
to connect. If the hostname is not specified, the value is automatically used from the current
Neoview Script session. If Neoview Script was invoked with the -noconnect launch
parameter, you are prompted for a hostname value.
dsnName
specifies the name of a data source. If the dsnName is not specified, the value is automatically
used from the current Neoview Script session. If Neoview Script was invoked with the
-noconnect launch parameter, you are prompted for a dsnName value.
Considerations
In the Neoview Script interface, you must enter the command on one line.
If Neoview Script was invoked with the -noconnect launch parameter, Neoview Script prompts
you for the values.
Currently, none of the commands work with the -noconnect option.
Examples
These commands create a new connection to the Neoview platform from the current or existing
Neoview Script interface:
SQL>connect
User Name: super.services
Password:
Connected to DataSource TDM_Default_DataSource.
SQL>connect super.services/password
Connected to DataSource TDM_Default_DataSource.
SQL>connect super.services/password@host0101
Connected to DataSource TDM_Default_DataSource.
SQL>connect super.services,NVSCRIPT
Password:
Connected to DataSource NVSCRIPT.
DISCONNECT Command
The DISCONNECT command terminates the connection from the Neoview platform, not from
the Neoview Script interface.
Syntax
DISCONNECT [IF ERRORCODE{=|<|>|<=|>=|<>}error-code]
error-code
is an integer that represents an error condition of the previously executed command. If the
previously executed command returns this error code, the Neoview Script interface disconnects
and exits.
Commands that execute successfully in the Neoview Script interface have an error code of
zero (0). Interface commands that do not perform SQL operations and that fail to execute
have an error code of -1. A failed SQL operation has a specific SQL error code associated with
the error condition. For more information about SQL error messages, see the Neoview Messages
Manual.
88 Neoview Script Interface Commands