22. Using 3GL Procedures : Set Attribute
 
Share this page                  
Set Attribute
Set attribute or attributes of a record or array.
Syntax
exec 4gl set attribute record | array index
  (attribute = :var[:ind] [(attribute = :var[:ind]])]
exec 4gl set attribute record | array index
  using descriptor
record
Specifies the handle of the record
array
Specifies the handle of the array
index
Specifies the index number of the variable; indicates the row of the array variable which is to be set
attribute
Specifies the name of the attribute
var
Specifies a 3GL variable
ind
Specifies a 3GL Null indicator
descriptor
Specifies the name of the SQLDA descriptor
Description
The set attribute statement copies the values from 3GL variables into the attributes of a record or array row. The named attributes must appear in the record or array, and the types of the attributes must be compatible with the types of the variables.
The using descriptor form sets the attributes indicated in the SQLDA set up by the describe statement. See Describe for more information.