BPAM provides an
application program interface (API) to allow programmers to access libraries directly. The BPAM API is similar to
basic sequential access method (BSAM), but it adds functionality to process directories. Individual members of a PDS can also be processed using sequential access methods by specifying the member name on the job control
DD statement. The programmer specifies DSORG=PO in their
Data Control Block (DCB) to indicate use of BPAM. As a
basic access method BPAM reads and writes member data in
blocks and the I/O operation proceeds
asynchronously and must be tested for completion using the CHECK macro. BPAM uses the standard system macros OPEN, CLOSE, READ, WRITE, and CHECK. The NOTE macro instruction returns position of the last block read or written, and the POINT macro will reposition to the location identified by a previous NOTE. ==Load modules==