This document contains a COBOL program with explanations to demonstrate database access using function codes. It defines working storage variables for the function codes and qualified/unqualified SSAs to the master and detail segments. The linkage section defines the IO-PCB and DB-PCBs needed. The procedure division makes calls to the database using the different function codes and passing the appropriate PCBs and SSAs.