Jump to content

Queued Sequential Access Method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Peterh5322 (talk | contribs) at 19:08, 16 October 2011 (Created page with '{{Unreferenced stub|date=December 2010}} {{Mainframe I/O access methods}} In IBM mainframe operating systems, '''Queued sequential access method''' ('''Q...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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 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 (reads) and blocking (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) that allows programs to access physical blocks of data, but provides no support for accessing logical records within blocks.

The QSAM 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.