Technical data

Contents
Preface ............................................................ ix
1 Program Organization and Structure
1.1 Program Structure . . . ........................................ 1–1
1.2 HP COBOL Data Manipulation Language (DML) ................... 1–3
1.3 Creating an HP COBOL DML Program ........................... 1–4
1.4 Compiling an HP COBOL DML Program . . ....................... 1–5
1.4.1 Copying Database Records in an HP COBOL Program ............ 1–5
1.4.2 Using the /MAP Compiler Qualifier ........................... 1–5
1.5 Linking an HP COBOL DML Program ........................... 1–5
1.6 Running an HP COBOL DML Program ........................... 1–6
2 Database Programming Elements of HP COBOL
2.1 Database-Related User-Defined Words ............................ 2–1
2.2 Database-Related Reserved Words ............................... 2–2
2.2.1 DB-CONDITION . ........................................ 2–2
2.2.2 DB-CURRENT-RECORD-NAME ............................. 2–2
2.2.3 DB-CURRENT-RECORD-ID ................................ 2–3
2.2.4 DB-KEY................................................ 2–3
2.2.5 DB-UWA ............................................... 2–3
3 Data Division
3.1 DATA DIVISION General Format and Rules ....................... 3–2
DB (Subschema Description) . . . ................................ 3–5
LD (Keeplist Description) ...................................... 3–9
4 Procedure Division
4.1 COBOL Statements for the Database Programmer . . . ............... 4–1
4.1.1 Compiler-Directing Statements and Sentences . . . ............... 4–3
4.1.2 Imperative and Conditional Statements and Sentences ............ 4–3
4.2 Explicit and Implicit Scope Terminators . . . ....................... 4–4
4.3 Scope of Names ............................................. 4–4
4.4 Database Key Identifiers ...................................... 4–4
4.5 Database Conditions . ........................................ 4–6
4.5.1 Tenancy Conditions ....................................... 4–7
4.5.2 Empty Condition . ........................................ 4–7
4.5.3 Database Key Condition .................................... 4–8
4.5.4 Condition Evaluation Rules . ................................ 4–9
4.6 Record Selection Expressions (RSE) .............................. 4–9
4.7 Set Membership Options and DML Verbs . . ....................... 4–15
iii