Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

1.1.3 Special Registers

Special registers are reserved words that name storage areas generated by the compiler. Their primary use is to store information produced through specific COBOL features. Each such storage area has a fixed name, and must not be defined within the program.

Unless otherwise explicitly restricted, a special register can be used wherever a data-name or identifier having the same definition as the implicit definition of the special register, (which is specified later in this section).

If qualification is allowed, special registers can be qualified as necessary to provide uniqueness. (For more information, see "Qualification" in topic

X For the first CALL to a program or INVOKE of a method, the compiler initializes the special register fields to their initial values.

In the following cases:

The following special registers are reset to their initial value on each
X program or method entry:

In all other cases, the special registers will not be reset; they will be
X unchanged from the value contained on the previous CALL or INVOKE.

You can specify an alphanumeric special register in a function wherever an alphanumeric argument to a function is allowed, unless specifically prohibited.


Previous Topic Next Topic Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.

Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS

Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.