bdfp1m02Programming Concepts and Reference

Programming Concepts and Reference


Contents

  • Figures

  • Tables

  • Notices
  • Programming Interface Information
  • Trademarks
  • About This Book
  • Before You Begin
  • Who Should Read This Book
  • How This Book Is Organized
  • Conventions Used in the TPFDF Library
  • How to Read the Syntax Diagrams
  • Related Information
  • How to Send Your Comments

  • Application Programming

  • Application Programming Overview
  • Files and Subfiles
  • Data Level Usage
  • Using Extended Logical Records
  • Specifying Algorithm Arguments with TPFDF Macros and Functions
  • Using Basic Indexing with Macros and Functions
  • Using Keys in a Detail File
  • Adding LRECs to Detail Files Using Basic Indexing
  • Grouping LRECs Together Using the Unique Key Facility
  • Using Unique Keys
  • Transaction Manager
  • ALCS Support
  • Commit Scopes
  • Programming Conventions
  • Internal Use of Commit Scopes
  • Checkpoint and Close Processing
  • Benefits of Using Commit Scopes
  • Identifying Return Indicators and Errors
  • Checking for Errors in Assembler Using Equates
  • Checking for Errors Using Structured Programming Macros (SPMs)
  • Checking for Errors Using C Functions
  • Format
  • Normal Return
  • Examples
  • Specifying Logical Records (LRECs) Using Keys
  • Overview of Keys
  • Differences between Key Lists and Keyn Parameters
  • Using Keys When Reading LRECs
  • Reading LRECs Using Partial Keys
  • Reading LRECs Using a B+Tree Index
  • Using Variable-Length Fields as Keys
  • Specifying File Organization with Keyn Parameters
  • Keyn Parameters Examples
  • Setting Up and Using a Key List
  • Setting Up a Key List
  • Using a Key List
  • Using Boolean Logic in Key Lists
  • Using Default-Key Key Lists
  • Using Modification Key Lists
  • Sample Applications
  • Problem and Solution
  • Member File Definitions DSECT
  • Assembler Application Program Example
  • Processing the Member File Using TPFDF Macros
  • C Language Application Program Example
  • Processing the Member File Using TPFDF C Functions

  • C Language Functions

  • TPFDF General-Use C Language Functions: Reference
  • dfadd-Add a Logical Record to a Subfile
  • dfadr-Provide the File Address of a Prime Block
  • dfckp-Checkpoint a Subfile
  • dfclr-Allow ECB Exit with Open Files
  • dfcls-Close a Subfile
  • dfcpy-Copy a Subfile
  • dfcre-Create a Subfile
  • dfdel-Delete One or More Logical Records
  • dfdix-Delete Index References to a Subfile
  • dfdsp-Display Logical Records from a Subfile
  • dffrl-Ensure an ECB Data Level Is Free
  • dfidx-Create an Index Reference
  • dfifb-Check a SW00SR Slot
  • dfkey-Activate a Key List
  • dfmod-Perform or Indicate Logical Record Modifications
  • dfmrg-Merge Logical Records from Two Subfiles
  • df_nbrkeys-Setting Up the Number of Keys
  • dfopn-Open a Subfile
  • dfopt-Set Optional Information
  • dfred-Read a Logical Record
  • dfrep-Replace a Logical Record with Another Logical Record
  • dfret-Retain a Logical Record Position
  • dfrst-Restore a Subfile
  • df_setkey-Setting Up a Key in a Key List
  • dfspa-Create Work Space
  • dfsrt-Sort a Subfile
  • dftld-Write a Subfile from Main Storage to DASD
  • dftlg-Write a File or Subfile to Tape
  • dftrd-Read a Subfile from an Input Tape to Main Storage
  • dfuky-Generate a Unique Key for Use in Logical Records
  • member_size-Calculating the Size of a Structure Member
  • TPFDF Restricted C Language Functions: Reference
  • dftab-Access Database Definition Tables

  • Assembler Macros

  • TPFDF General-Use Assembler Macros: Reference
  • DBADD-Add a Logical Record to a Subfile
  • DBADR-Provide the File Address of a Prime Block
  • DBCKP-Checkpoint a Subfile
  • DBCLR-Allow ECB Exit with Open Files
  • DBCLS-Close a Subfile
  • DBCPY-Copy a Subfile
  • DBCRE-Create a Subfile
  • DBDEL-Delete One or More Logical Records
  • DBDIX-Delete Index References to a Subfile
  • DBDSP-Display Logical Records from a Subfile
  • DBFRL-Ensure an ECB Data Level Is Free
  • DBIDX-Create an Index Reference
  • DBIFB-Check a SW00SR Slot
  • DBKEY-Activate a Key List
  • DBMOD-Perform or Indicate Logical Record Modifications
  • DBMRG-Merge Logical Records from Two Subfiles
  • DBOPN-Open a Subfile
  • DBRED-Read a Logical Record
  • DBREP-Replace a Logical Record with Another Logical Record
  • DBRET-Retain a Logical Record Position
  • DBRST-Restore a Subfile
  • DBSETK-Setting Up a Key in a Key List
  • DBSPA-Create Work Space
  • DBSRT-Sort a Subfile
  • DBTLD-Write a Subfile from Main Storage to DASD
  • DBTLG-Write a File or Subfile to Tape
  • DBTRD-Read a Subfile from an Input Tape to Main Storage
  • DBUKY-Generate a Unique Key for Use in Logical Records
  • TPFDF Restricted Assembler Macros: Reference
  • BLKSZ-Convert a Block Type to a Block Size
  • DBCNT-Calculate the Length of an Assembler Symbol
  • DBTAB-Access Database Definition (DBDEF) Tables
  • DFCAS-TPFDF Case Setup in Fast-link Segments
  • DFCLIB-C Language Interface
  • DFDDA-Distributed Data Access Support
  • DFDLAY-Delay Processing Conditionally
  • DFGDS-General Data Set Support User Exit
  • DFGETC-Get Working Storage Block
  • DFGLVL-Get Resource Level
  • DFGPNL-Get Calling Program Address
  • DFLNK-TPFDF Fast Linkage
  • DFSSU-Handling DBDEF Subtables
  • DFTDC-Dialogue Control Facility Support User Exit
  • DFUEX-Define TPFDF User Exit Point
  • FILTP-Determine File Address Type
  • FMSGS-Set Up Output Messages
  • HELPA-Help Message Text
  • Index