Technical data
5.13 Currency Indicators . . ........................................ 5–25
5.13.1 Current of Realm . ........................................ 5–26
5.13.2 Current of Set Type ....................................... 5–27
5.13.3 Current of Record Type .................................... 5–27
5.13.4 Current of Run Unit ...................................... 5–28
5.14 Currency Indicators in an HP COBOL DML Program . ............... 5–28
5.14.1 Using the RETAINING Clause .............................. 5–30
5.14.2 Using Keeplists . . ........................................ 5–32
5.14.3 Transactions and Quiet Points ............................... 5–34
6 DML Programming—Tips and Techniques
6.1 The Ready Modes ............................................ 6–1
6.1.1 Record Locking . . . ........................................ 6–2
6.2 COMMIT and ROLLBACK .................................... 6–3
6.3 The Owner and Member Test Condition ........................... 6–5
6.4 Using IF EMPTY Instead of IF OWNER . . . ....................... 6–6
6.5 Modifying Members of Sorted Sets ............................... 6–6
6.6 CONNECT and DISCONNECT . ................................ 6–8
6.7 RECONNECT .............................................. 6–9
6.8 ERASE ALL ................................................ 6–10
6.9 ERASE Record-Name . ........................................ 6–11
6.10 Freeing Currency Indicators . . . ................................ 6–12
6.10.1 Establishing a Known Currency Condition ..................... 6–12
6.10.2 Releasing Record Locks .................................... 6–14
6.11 FIND and FETCH Statements . . ................................ 6–14
6.12 FIND ALL Option . . . ........................................ 6–14
6.13 FIND NEXT and FETCH NEXT Loops ........................... 6–15
6.14 Qualifying FIND and FETCH . . ................................ 6–17
7 Debugging and Testing HP COBOL DML Programs
7.1 DBQ Commands and DML Statements ........................... 7–1
7.2 Sample Debugging and Testing Session ........................... 7–2
7.3 Program Map Listings on Alpha or VAX . . . ....................... 7–10
7.3.1 Listings on Alpha and I64 . . ................................ 7–10
7.3.2 Listings on VAX . . ........................................ 7–14
8 Database Programming Examples
8.1 Populating a Database ........................................ 8–1
8.2 Backing Up a Database ....................................... 8–9
8.3 Accessing and Displaying Database Information .................... 8–15
8.4 PARTBOM Sample Run ....................................... 8–17
8.5 Creating Relationships Between Records of the Same Type ............ 8–17
8.6 STOOL Program Parts Breakdown Report—Sample Run ............. 8–22
8.7 Creating New Record Relationships .............................. 8–22
8.7.1 PERSONNEL-UPDATE Sample Run—Listing Before Promotion .... 8–28
8.7.2 PERSONNEL-UPDATE Sample Run—Listing After Promotion ..... 8–29
v