Pass a dataset within the same ABL session
- Last Updated: September 14, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Pass a dataset within the same ABL session
When passing a dataset within the same ABL session it is common to pass the dataset by reference.
Provided a dataset was previously defined, you can define a dataset parameter by name as input, output, or input-output. The simplified syntax for defining a dataset parameter by name is:
|
For example:
|
This statement allows the dsOrderOrderLine dataset to be passed back to the calling procedure as
an output parameter.
When a procedure that runs in the same ABL session calls another procedure,
passing the dataset parameter, the calling procedure specifies the BY-REFERENCE keyword. In the following example, the
GetData.p procedure calls the PopulateData.p procedure:
|
In this case, both procedures are using the same dataset object at runtime.