Basic sequential access method: Difference between revisions
Peterh5322 (talk | contribs) No edit summary |
Peterh5322 (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Unreferenced stub|date=December 2010}} |
{{Unreferenced stub|date=December 2010}} |
||
{{Mainframe I/O access methods}} |
{{Mainframe I/O access methods}} |
||
In [[IBM mainframe]] [[operating system]]s, '''basic sequential access method''' ('''BSAM''') is an [[access method]] to read and write [[data set (IBM mainframe)|dataset]]s sequentially. BSAM is available on [[OS/360]], [[OS/VS2]], [[MVS]], [[z/OS]], and related high-end operating systems. |
In [[IBM mainframe]] [[operating system]]s, '''basic sequential access method''' ('''BSAM''')<ref>http://www.bitsavers.org/pdf/ibm/360/os/plm_1966-67/Y28-6604-1_Sequential_Access_Methods_PLM_Jan67.pdf</ref> is an [[access method]] to read and write [[data set (IBM mainframe)|dataset]]s 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 [[Application programming interface|API]] calls are used for different devices. |
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 [[Application programming interface|API]] calls are used for different devices. |
||
| Line 10: | Line 10: | ||
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 [[Microsoft Windows|Windows]]. |
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 [[Microsoft Windows|Windows]]. |
||
<references /> |
|||
{{mainframe-compu-stub}} |
{{mainframe-compu-stub}} |
||
Revision as of 16:29, 17 October 2011
In IBM mainframe operating systems, basic sequential access method (BSAM)[1] 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, in this specific context meaning unbuffered with no deblocking (reads) and no blocking (writes), although buffering is an option, but not deblocking or blocking. 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.
Indeed, the BSAM user must be aware of truncated final blocks (a block at the end of a dataset which is shorter than the BLKSIZE of the dataset) and, in many cases, embedded truncated blocks (blocks within a dataset which are shorter than the BLKSIZE of the dataset). QSAM has none of these significant limitations.
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.