COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
DISPLAY "PROCESS " PROCESS-NAME.
DISPLAY "MESSAGE CODE " SYS-MSG-CODE.
DISPLAY "MESSAGE CONTENTS: " SYS-MSG-TEXT.
Determining the Status
Using the ENTER verb, a process can call the PROCESS_GETINFO_ routine to obtain information
about any process. The PROCESS_GETINFO_ routine can return any or all of:
• The process name, processor number, and number of the process within that processor
• The creator accessor ID (group ID, user ID) of the process
• The process accessor ID (group ID, user ID) of the process
• The execution priority at which the process is running
• The name of the loadfile from which the process was loaded
• The device name of the process’s home terminal
• The system number (in a network of systems) on which the process is running
• An error value, indicating the success of (or the nature of the failure of) the request
Accessor IDs
The creator accessor ID and process accessor ID are elements of the security system of the operating
environment. Every user has a unique user name and a corresponding unique user ID. A user name
is of the form:
groupname.username
where groupname is the name of the group to which the user belongs, and username is a name
identifying the individual user within the group. This is the same user name you use when you log
on. A user ID is the numeric equivalent of the user name and is of the form:
group-id, user-id
where group-id and user-id are nonnegative integers in the range 0 through 255. These are
the numeric values reported by the WHO command of the command interpreter or in the OWNER
column of a FUP INFO report.
Every process on an HP system has two accessor IDs:
DescriptionAccessor ID
Identifies the user who initiated the creation of the processCreator accessor ID (CAID)
Authority of the process to make requests to the operating environment, such as to
open a file or stop another process
Process accessor ID (PAID)
When you log on to a NonStop system, the operating environment gives your command interpreter
your user ID as its process accessor ID. Only a process having the appropriate process accessor
ID can read, write, execute, or purge a given file.
All processes that you start (using the explicit or implicit RUN command) ordinarily inherit your
process accessor ID as their process accessor ID and as their creator accessor ID. If, however, the
loadfile from which you created the process has been designated appropriately (using the PROGID
option of the FUP SECURE command or using a SETMODENOWAIT or SETMODE call to set the
file security), then the new process adopts as its process accessor ID the loadfile’s owner ID, not
your process accessor ID.
This enables you to establish a loadfile, executable by other users, that can:
• Gain access to a file to which those users themselves cannot gain access
• Initiate processes which those users do not own
932 Process Initiation, Communication, and Management










