OpenForExport method: Tree class
Syntax
OpenForExport(SetID, UserKeyValue, TreeNameEffDt)
Description
Use the OpenForExport method to open a tree for export processes (using TreeMover.)
Parameters
| Parameter | Description |
|---|---|
|
SetID |
Specify the table indirection key for the tree. This parameter takes a string value. If the tree structure the tree is based on has its IndirectionMethod specified as "S", you must specify a SetID. If the tree structure doesn’t have its IndirectionMethod specified as "S", you must enter a Null string (that is, two quotation marks with no blank space between them ("")) for this parameter. |
|
UserKeyValue |
Specify the User Key value for the tree. This parameter takes a string value. If the tree structure the tree is based on has its IndirectionMethod specified as "U" or "B", you must specify a User Key Value. If the tree structure doesn’t have its IndirectionMethod specified as "U" or "B", you must enter a Null string (that is, two quotation marks with no blank space between them ("")) for this parameter. |
|
TreeName |
Specify the name for the tree. This parameter takes a string value. |
|
EffDt |
Specify the effective date for the tree. This parameter takes a string value. The format must be in the correct format for the database platform the code is executing on. |
Returns
An integer: 0 if opened successfully.
Example
If &TREE.OpenForExport(&SETID, &USERKEYVALUE, &TREE_NAME, &TREE_EFFDT) <> 0 Then
/* processing */
End-if;
Related Topics