HPlogo ALLBASE/SQL COBOL 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 6 in Figure 3-1 “Sample Program COBEX2 ”, you can terminate a DBE session with the RELEASE option of the COMMIT WORK command. The program in Figure 3-1 “Sample Program COBEX2 ” terminates its DBE session whenever:

  • The user enters a slash (/) in response to the prompt in paragraph B100-SELECT-DATA.

  • The program encounters an error serious enough to set ABORT-FLAG to Y in paragraph S100-STATUS-CHECK.

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

Feedback to webmaster