Neoview Command Interface (NCI) Guide (R2.3)
QUIT Command
The QUIT command disconnects from and exits the NCI.
Syntax
QUIT [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, NCI disconnects and exits.
Commands that execute successfully in NCI 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.
Considerations
You must enter the command on one line. The command does not require an SQL terminator.
Examples
• This command disconnects from and exits NCI, which disappears from the screen:
SQL>quit
• In a script file, the conditional exit command causes the script file to quit running and
disconnect from and exit NCI when the previously run command returns error code 4082:
log c:\errorCode.log
select * from employee;
quit if errorcode=4082
log off
These results are logged when error code 4082 occurs:
SQL>select * from employee;
*** ERROR[4082] Table, view or stored procedure NEO.USR.EMPLOYEE
does not exist or is inaccessible.
SQL>quit if errorcode=4082
RECONNECT Command
The RECONNECT command creates a new connection to the Neoview platform using the login
credentials of the last successful connection.
Syntax
RECONNECT
Considerations
The host name or IP address and port number, credentials (user name and password) and the
datasource names values are used from information previously entered. This is the information
specified at launch or when the last CONNECT command was executed.
If NCI was invoked with the -noconnect launch parameter, NCI prompts you for the values.
QUIT Command 113