ArticleslgStudy

computer science

Access method

Access method is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Access method rather than just read about it. In short: An access method is a function of a mainframe operating system that enables access to data on disk, tape or other external devices. Access methods were present in several mainframe operating systems since the late 1950s, under a variety of names; the name access method was introduced in 1963 in the IBM OS/360 operating system.

Key takeaways

  • Access method belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Access method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Access method from memory before moving on to harder problems.

Reference excerpt

An access method is a function of a mainframe operating system that enables access to data on disk, tape or other external devices. Access methods were present in several mainframe operating systems since the late 1950s, under a variety of names; the name access method was introduced in 1963 in the IBM OS/360 operating system. Access methods provide an application programming interface (API) for programmers to transfer data to or from device, and could be compared to device drivers in non-mainframe operating systems, but typically provide a greater level of functionality.

Purpose of access methods System/360 and successor systems perform input/output using a special program for an I/O channel, a processor dedicated to control peripheral storage device access and data transfer to and from main memory. Channel programs are composed of channel command words (CCWs). Programming those is a complex task requiring detailed knowledge of the hardware characteristics. Channel programs are initiated by a START IO instruction issued by the operating system. This is usually front ended by the Execute Channel Program (EXCP) macro for application programmer convenience. EXCP issues an SVC (supervisor call instruction) that directs the operating system to issue the START IO on the application's behalf. Access methods provide:

Ease of programming - programmer would no longer deal with a specific device procedures, including error detection and recovery tactics in each and every program. A program designed to process a sequence of 80-character records would work no matter where the data are stored. Ease of hardware replacement - programmer would no longer alter a program when data should be migrated to newer model of storage device, provided it supports the same access methods. Ease shared data set access - an access method is a trusted program, that allows multiple programs to access the same file, while ensuring the basic data integrity and system security. Read-ahead - Queued access methods may start as many I/O operations as there are buffers available, anticipating application program requirements. Unlike systems derived from Unix, where all files and devices are considered to be an unformatted stream of bytes, mainframes offer a variety of data options and formats, such as varying types and sizes of records, and different ways of accessing data, such as via record keys. Access methods provide programs a way of dealing with this complexity.

Programs can read or write a record or block of data and wait until the input/output operation is complete (queued access methods) or allow the operation to be started and the program to continue to run, waiting for the completion at a later time (basic access methods). Programs can specify the size and number of buffers for a file. The same buffer or pool can be used for multiple files, allowing blocks of data to be read from one file and written to another without requiring data movement in memory. Programs can specify the type of error recovery to be used in case of input/output errors.

Interfaces In OS/360, the user must create and OPEN a Data Control Block (DCB), and CLOSE it when it is done. Many macro instructions refer directly to a DCB, but some refer to a control block that in turn refers to a DCB. For Execute Channel Program (EXCP), the user provides an Input/Output Block (IOB); for basic access methods the READ, WRITE and CHECK macro instructions refer to a Data Event Control Block (DECB). In OS/VS, IBM introduced two new access methods, Virtual Storage Access Method (VSAM) and Virtual Telecommunications Access Method (VTAM). These use an Access Control Block (ACB) instead of a DCB, and most operations use a new control block, the Request Parameter List (RPL). In OS/VS1 and MVS, the Job Entry Subsystem (JES) has an ACB/RPL interface for SYSIN and SYSOUT datasets, but BSAM and QSAM have a Compatibility Interface to support BSAM and QSAM.

Storage access methods Storage-oriented access methods in approximate chronological order:

BDAM - Basic direct access method BSAM - Basic sequential access method QSAM - Queued sequential access method BPAM - Basic partitioned access method ISAM - Indexed sequential access method VSAM - Virtual storage access method, introduced with OS/VS OAM - Object access method, introduced in MVS/SP (1989) Distributed Data Management Architecture - access methods for distributed file access.

Basic versus queued Both types of access deal with records of a data set. Basic access methods read or write one physical record – block – at a time. Queued methods support internal blocking of data and also often read-ahead scheme. Queued access methods generally provide better performance, while basic methods provide more flexibility.

Sequential versus direct Sequential access assumes that records can be processed only sequentially, as opposed to direct (or random) access. Some devices, such as magnetic tape, naturally enforce sequential access, but it can be used as well on direct access storage devices (DASD), such as disk drives. In the latter case, a data set written with sequential access can be later processed in a direct manner.

Networking access methods Network-oriented access methods in approximate chronological order:

BTAM - Basic telecommunications access method QTAM - Queued teleprocessing access method TCAM - Telecommunications access method VTAM - Virtual telecommunications access method, introduced with OS/VS TCP/IP for MVS - Transmission Control Protocol/Internet Protocol

IMS The IBM Information Management System (IMS) uses the term "access method" to refer to its methods for manipulating "segments in a database record". These are:

Generalized Sequential Access Method (GSAM), Hierarchical Direct Access Method (HDAM), Hierarchical Indexed Direct Access Method (HIDAM), Hierarchical Indexed Sequential Access Method (HISAM), Hierarchical Sequential Access Method (HSAM), Overflow sequential access method (OSAM), Partitioned Hierarchical Direct Access Method (PHDAM), Partitioned Hierarchical Indexed Direct Access Method (PHIDAM), Partitioned Secondary Index (PSIMDEX), Simple Hierarchical Sequential Access Method (SHSAM), and Simple Hierarchical Indexed Sequential Access Method (SHISAM). This is a different use of the term from the other access methods mentioned in this article.

Modern implementations In the z/OS operating system, two elements provide access methods:

Data Facility Product Communications Server

Notes

References

Worked examples

Example 1 — a first encounter with Access method

Start with the simplest possible case. Write down what Access method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Access method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Access method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Access method

In research
Access method appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Access method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Access method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer-related introductions in 1963, Computer file systems, IBM mainframe operating systems, so understanding it makes those chapters shorter.
In everyday life
Look for Access method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Access method” →

How to study Access method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Access method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Access method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Access method in simple terms?

An access method is a function of a mainframe operating system that enables access to data on disk, tape or other external devices. Access methods were present in several mainframe operating systems since the late 1950s, under a variety of names; the name access method was introduced in 1963 in the…

Why does Access method matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Access method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Access method.

Tags

  • Computer-related introductions in 1963
  • Computer file systems
  • IBM mainframe operating systems
  • Operating system APIs

Keep exploring