CRE Programmer's Guide

Using the Common Language Utility (CLU) Library
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
5-7
Using SMU Routines to Manipulate Messages
PARAM Message
The PARAM message contains all parameter names and the values associated with
the names.
A count of the number of named parameters.
A list of the parameters in the following form:
°
Length of name
°
Name
°
Length of value
°
Value
Using SMU Routines to Manipulate Messages
The following paragraphs summarize how you can manipulate messages using the
SMU routines.
Changing Environment Values
TACL ASSIGN, VOLUME, and PARAM commands let you specify default values that
persist in your TACL environment until you explicitly change them or until you log off.
In the RUN command to start a process, you can specify IN and OUT files and a
parameter string. These startup values override the default values for that process only
and do not persist in your environment.
Getting Environment Information
In the Guardian environment, a process can use the SMU functions to fetch the values
of or store values into its PARAM, ASSIGN, and startup messages. Processes running
in the OSS environment cannot use the SMU routines.
To access environment information using the SMU routines, your program must take
the following steps:
Save the messages.
Use the Get family of SMU functions.
SECEXT Integer Secondary extent size of file
FILECODE Integer File code
ACCESS Integer Access mode—input, output, or input/output
EXCLUSION Integer Exclusion mode—shared, exclusive, or protected
RECSIZE Integer Record size of file
BLKSIZE Integer Block size of file
Table 5-6. ASSIGN Message Parts (page 2 of 2)
Portion Name Type Identifies