Queued Sequential Access Method
In IBM mainframe operating systems, Queued sequential access method (QSAM) is an access method to read and write datasets sequentially. QSAM is available on OS/360, OS/VS2, MVS, z/OS, and related high-end operating systems.
QSAM is used both for devices that are naturally sequential, such as punched card readers and punches and line printers, and for data on devices that could also be addressed directly, such as magnetic disks. QSAM offers device independence: to the extent possible, the same API calls are used for different devices.
QSAM is—as its name says—queued, in this specific context meaning buffered with deblocking of reads and blocking of writes. It allows programs to read and write logical records within physical blocks of data, as opposed to the less advanced Basic sequential access method (BSAM) which allows programs to access physical blocks of data, but provides no support for accessing logical records within blocks.
Indeed, QSAM manages truncated final blocks and truncated embedded blocks completely transparently to the user.
- Sequential Access Memory (SAM)
- Basic Sequential Access Method (QSAM)
- Hierarchical Sequential Access Method (HSAM)
- Basic Indexed Sequential Access Method (BISAM)
- Queued Indexed Sequential Access Method (QISAM)
- Hierarchical Indexed Sequential Access Method (HISAM)