From Writing Real Programs in DCL, Second Edition

Overview

IN MOST PROGRAMMING LANGUAGES, AN ARRAY is a collection of data elements of the same type. In the C language, for example, you can create an array of integers, an array of floating-point numbers, or an array of characters. Two items of information are needed to refer to an individual element of an array. The first is the name of the array, and the second is an identifier for the particular element in question. This identifier is called an index or subscript. Most languages, C included, require that an index be an integer. A few languages, MUMPS being a notable example, allow an index to be any value whatsoever. The array is elevated from a simple ordered sequence of elements to an associative array that maps one value (the index or key) to another value (the data item).

DCL does not provide built-in array facilities. However, using apostrophe substitution, you can simulate an array with a collection of symbols. A portion of the symbol name serves as the array name and a portion serves as the index. There is no requirement that all the array elements be of the same type, because each symbol can contain any type of data.

22.1 Arrays with Integer Indexes

Most programming languages provide arrays whose index values are integers. This can be simulated in DCL with a collection of symbols, one for each array element, whose names consist of a fixed alphabetic part (the array name) and an integer part...

Copyright Butterworth-Heinemann 1999 under license agreement with Books24x7

Products & Services
CCD Image Sensors
Charged coupled device (CCD) image sensors are electronic devices that are capable of transforming a light pattern (image) into an electric charge pattern (an electronic image).
Field-Programmable Gate Arrays (FPGA)
Field-programmable gate arrays (FPGAs) have a different architecture than SPLDs and CPLDs, and typically offer higher capacities. FPGAs are also known as logic cell arrays (LCA) and programmable ASIC (pASIC).
UV and Visible Spectrometers
UV and visible spectrometers measure the amount of ultraviolet (UV) and visible light transmitted or absorbed by a sample placed in the spectrometer.
Diode Arrays
Diode arrays are composed of multiple discrete (usually unconnected) diodes on a single silicon chip. Diode arrays are important semiconductor products because they save assembly time and improve reliability over individually packaged diodes. In general, diode arrays use four or more diodes in a single package.
RAID Controllers
RAID controllers are computer boards that control RAID systems.

Topics of Interest

Overview THIS CHAPTER COVERS APPLICATION COMMUNICATIONS over a network, using DECnet. This chapter builds on the file operations discussed in Chapters 15 and 17. OpenVMS systems are commonly...

Arrays As was the case with strings, C# s Array class shares many similarities with its Java counterpart. You are most likely familiar with the concept of an array; an array is a series of objects...

Now that we have seen the basic data types and sequential operations from which the behavioral part of a VHDL model is formed, it is time to look at composite data types. We first mentioned them in...

Glossary Absolute time A string representing an exact point in time. The full OpenVMS format is dd-mon-yyyy hh:mm:ss.cc. Access category A level at which a process accesses a file or...

3.4 Arrays, Strings, Records Simple data types are not sufficient So far, we have introduced simple data types that can be used, for example, to manage individual characters or numbers. These...