Jump to content

Basic sequential access method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Peterh5322 (talk | contribs) at 18:54, 23 June 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In IBM mainframe operating systems, basic sequential access method (BSAM) is an access method to read and write datasets sequentially. BSAM is available on OS/360, OS/VS2, MVS, z/OS, and related high-end operating systems.

BSAM is used both for devices that are naturally sequential, such as punched card readers and printers, and for data on devices that could also be addressed directly, such as magnetic disks. BSAM offers device independence: to the extent possible, the same API calls are used for different devices.

BSAM is—as its name says—basic. It allows programs to read and write physical blocks of data, as opposed to the more advanced queued sequential access method (QSAM) that allows programs to access logical records within physical blocks of data.

The BSAM application program interface can be compared with the interface offered by open, read, write and close calls (using file handles) in other operating systems such as Unix and Windows.