CRE Programmer's Guide
Common Language Utility (CLU) Library Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
9-23
SMU_Assign_PutText_
portion_bytes
is the size of portion, in bytes, and must be a value greater than 0. For TAL, you 
must supply this value; for COBOL and FORTRAN, the compiler implicitly 
computes and transmits this value to the function. If 
portion_bytes exceeds the 
number of characters in 
portion, the first unused character of portion must be 
a space character. 
value
is a variable to contain the retrieved value. 
Return Value
Values returned by SMU_Assign_GetValue _ are:
SMU_Assign_PutText_
The SMU_Assign_PutText_ function creates or replaces a text part of an ASSIGN 
message with text obtained from a string variable. 
FILECODE File code 
PRIEXT Primary extent size 
RECSIZE Record size 
SECEXT Secondary extent size 
Return
Value Meaning
 0 The operation is successful.
-1 The operation failed because of a logic error, such as:
•
message_number or portion_bytes has an invalid value.
•
The specified ASSIGN message does not exist. 
•
portion does not identify a defined integer part of an ASSIGN message or 
identifies a nonexistent part.
INT PROC SMU_Assign_PutText_( message_number, 
 portion:portion_bytes,
 text:text_bytes )
 EXTENSIBLE;
 INT message_number; ! in, required
 STRING .EXT portion; ! in, required
 INT portion_bytes; ! in, required
 STRING .EXT text; ! in, required
 INT text_bytes; ! in, required TNS,native










