You can reconnect to a remote database if the connection is lost. The steps you need to take to reconnect may vary depending on how you are issuing your QMF commands. You can issue QMF commands in any of the following ways:
If you are entering QMF commands interactively and the connection to the remote location is lost, the Lost Connection Prompt panel displays.
To reconnect to the remote database:
If you type 1 to reconnect to the remote database, the CONNECT Command Prompt panel displays.
The name of the location to which you were previously connected appears in the TO Location field. If you are using SQL/DS, your user ID appears in the Userid field.
If QMF cannot connect to the location you specify, the CONNECT Command Prompt panel displays so you can try to connect again.
If you are running QMF commands in a linear procedure and the connection to the remote location is lost, the procedure ends. If you are running the procedure interactively, the Lost Connection Prompt panel displays so you can reconnect.
If you are running QMF commands in a procedure with logic, the logic of the procedure determines how the procedure ends. When the procedure finishes, and if you are running the procedure interactively, the Lost Connection Prompt panel displays so you can reconnect.
If you are entering QMF commands in a batch application and the connection to the remote location is lost, QMF ends.
To reconnect to the remote location:
For more information on the CONNECT command, see the QMF Reference, SC26-4716-05 .
If you are using the Table Editor to update a remote database, and you lose the connection to the database, any updates you have not saved are lost.
If you are running QMF commands from a list of database objects, and the connection to that database is lost, the database list is obsolete. You can still display the list, but if you type a command on the list, you get an error.