HPlogo ALLBASE/SQL Pascal Application Programming Guide: HP 9000 Computer Systems > Chapter 3 Embedding SQL Commands

Terminating a DBE Session

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

As illustrated at 7 in Figure 3-1, you can terminate a DBE session with the RELEASE option of the COMMIT WORK command. The program in Figure 3-1 terminates its DBE session whenever the following conditions occurs:

  • The user enters a slash (/) in response to the prompt in procedure SelectData.

  • The program encounters an error serious enough to set Abort to TRUE in procedure SqlStatusCheck.

  • The program encounters an error when processing the CONNECT, BEGIN WORK, or COMMIT WORK commands.

Feedback to webmaster