Technique to use proc-text-buffer
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Technique to use proc-text-buffer
The following example shows the results of the first ABL stored procedure,
pcust, which is first presented as an example in A
stored procedure with multiple result sets, output parameters, and a single return value.
pcust stored procedure
|
The OpenEdge-defined buffer, proc-text-buffer, has one character field
named proc-text. The buffer accepts the returned database results, converts
them to CHARACTER data type, and concatenates them into one string.
The next example illustrates
returning database results into the proc-text-buffer and
converting the results to the INTEGER data type.
Returning database results into the proc-text-buffer and results conversion
|
The DataServer passes the SQL statement directly to the MS SQL data source. The ABL does not process it, so errors occur only at run time and not when you compile a procedure.
QUOTER function
can be useful for quoting values or handling embedded quotes when
building SQL statements that will be passed into stored procedures
with the send-sql-statement option.