CRE Programmer's Guide

Common Language Utility (CLU) Library Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
9-38
FORTRAN Considerations
You invoke the current SMU functions as follows:
result
is an integer variable as described in the FORTRAN Reference Manual for the old
SMU functions.
functionname
is the name of a current SMU function.
parameter
is one of the SMU function parameters in this section. (The cplist parameter of
pre-D20 SMU functions is not a part of the new SMU functions.)
portion
is a character expression that specifies the message part you want to retrieve
or change. The compiler implicitly computes and transmits the size, in bytes, of
portion to the function.
text
is a character variable for new or retrieved text. The compiler implicitly
computes and transmits the size, in bytes, of
text to the function.
value
is an integer variable.
message_number
is an integer expression that evaluates to a number in the range -32768
through 32767, as permitted by a particular function.
name
is character expression that specifies a logical file name. The compiler
implicitly computes and transmits the size, in bytes, of
name to the function.
FORTRAN Examples
The following pairs of examples show how each current SMU function corresponds to
a pre-D20 SMU function:
result = SMU_Assign_Delete_ (messagenumber, portion)
result = DeleteAssign (portion, cplist, messagenumber)
result = SMU_Assign_GetText_ (messagenumber, portion, text)
result = GetAssignText (portion, text, messagenumber)
result = functionname ( parameter [ , parameter ] ... )