OpenTP1 Version 7 Programming Reference COBOL Language

[Contents][Index][Back][Next]

DAM file service (online facility: CBLDCDAM, offline facility: CBLDCDMB)

This section gives the syntax and other information of the following COBOL-UAP creation programs which are used for DAM file service:

Functions that can only be used in an online environment
  • CBLDCDAM('CLOS') - Close a logical file
  • CBLDCDAM('END ') - Terminate using an unrecoverable DAM file
  • CBLDCDAM('HOLD') - Shut down a logical file
  • CBLDCDAM('OPEN') - Open a logical file
  • CBLDCDAM('READ') - Input a logical file block
  • CBLDCDAM('REWT') - Update a logical file block
  • CBLDCDAM('RLES') - Release a logical file from the shutdown state
  • CBLDCDAM('STAT') - Reference the status of a logical file
  • CBLDCDAM('STRT') - Start using an unrecoverable DAM file
  • CBLDCDAM('WRIT') - Output a logical file block

Functions that can only be used in an offline environment
  • CBLDCDMB('BSEK') - Seek a physical file block
  • CBLDCDMB('CLOS') - Close a physical file
  • CBLDCDMB('CRAT') - Allocate a physical file
  • CBLDCDMB('DGET') - Input directly a physical file block
  • CBLDCDMB('DPUT') - Output directly a physical file block
  • CBLDCDMB('GET ') - Input a physical file block
  • CBLDCDMB('OPEN') - Open a physical file
  • CBLDCDMB('PUT ') - Output a physical file block

The COBOL-UAP creation programs for DAM file service can be used only in UAPs of TP1/Server Base. They cannot be used in UAPs of TP1/LiNK.

When defining DATA DIVISION of COBOL-UAP creation programs, the COBOL language templates can be used as samples. The COBOL language templates for DAM file service (CBLDCDAM, CBLDCDMB) are stored in DCDAM.cbl and DCDMB.cbl under the /BeTRAN/examples/COBOL/ directory.