Neoview Command Interface (NCI) Guide (R2.4)
Syntax
QUIT [WITH][status][IF{condition}]
status
is any 1-byte integer. status is a shell return value, and the range of allowable values is
platform dependent.
condition
is the same as the condition parameter defined for the “IF...THEN Command” (page 102). See
“Condition Parameter” (page 102).
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.
Examples
This command creates a new connection to the Neoview platform using the login credentials of
the last successful connection:
SQL>reconnect
Connected to DataSource TDM_Default_DataSource
114 NCI Commands