Setting text attributes consists of the following activities:
For information about character functions, see the Toolset Help.
The SET statement in the following example sets a text attribute to a character string by assigning a literal value to code:
CREATE received product SET code TO "GA"
A character view is a component of an entity view that sees an attribute that is defined as text. The SET statement in the following example sets a text attribute to a character view by finding the value of code and copying it:
CREATE received product SET code TO input product code
Special attributes include terminal ID, user ID, printer ID, and trancode. The SET statement in the following example specifies a value for a printer terminal:
SET id TO PRINTER_TERMINAL_ID
The SET statement in the following example sets a text attribute to spaces:
SET status TO SPACES
The SET statement in the following example uses an algorithm to set an attribute value:
CREATE new department SET code USING find_department WHICH IMPORTS: Entity View division
SET can also be used as a standalone action to establish a value for an attribute from an export or local view. The following statement shows an example:
SET export code TO input product code
|
Copyright © 2014 CA.
All rights reserved.
|
|