SQL/MP Programming Manual for COBOL85
SQL/MP Statements and Directives
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
3-7
Finding Information
Table 3-2 summarizes COBOL85 compiler directives that apply to a COBOL program 
containing embedded SQL statements and directives. For a description of all other 
COBOL85 compiler directives, see the COBOL85 for NonStop Systems Manual.
Transaction Control Statements
BEGIN WORK SQLRM Starts a TMF transaction.
COMMIT WORK SQLRM Commits all database changes made 
during the current TMF transaction and 
frees resources.
ROLLBACK WORK SQLRM Backs out the current TMF transaction 
and frees resources.
Table 3-2. COBOL85 Compiler Directives for SQL/MP
Directive Manual *  Description
SOURCE COBPM, 
COBRM
Copies source code from a source file into the compilation. 
SQL COBPM, 
COBRM
Indicates to the COBOL85 compiler that a program contains 
embedded SQL statements or directives. 
Specifies options for processing the SQL statements or 
directives as follows: 
•
PAGES specifies the number of 2048-byte pages that the 
COBOL85 compiler allocates to the SQL compiler 
interface (SCI).
•
SQLMAP generates an SQL map in the listing.
•
WHENEVERLIST writes active WHENEVER options to 
the listing file after each SQL statement is processed.
•
RELEASE1 or RELEASE2 specifies the version of the 
SQL/MP features in the program (including the SQL data 
structures) and the version of SQL/MP software on which 
the program can run. 
SQLMEM COBPM, 
COBRM
Controls the placement of SQL internal structures in either the 
user data segment (Working-Storage Section) or extended 
data segment (Extended-Storage Section).  
* This statement is documented in one or more of these manuals:
SQLRM 
SQL/MP Reference Manual 
COBPM SQL/MP Programming Manual for COBOL85 
Table 3-1. NonStop SQL/MP Statements and Directives (page 5 of 5)
Statement or Directive Manual* Description
* This statement is documented in one or more of these manuals:
SQLRM 
SQL/MP Reference Manual 
COBPM SQL/MP Programming Manual for COBOL85 










