Progress
DataServer
for ODBC Guide


PROC–HANDLE Function

SYNTAX

PROC-HANDLE 

EXAMPLE

This procedure runs the stored procedure pcust and writes the procedure handle to the variable hdl. It writes the results of the stored procedure identified by this procedure handle into the Progress-supplied buffer, proc–text–buffer, and displays it:

DEFINE VAR hdl AS INTEGER.

RUN STORED-PROCEDURE pcust hdl = PROC-HANDLE 
(10, OUTPUT 0, OUTPUT 0).
FOR EACH proc-text-buffer WHERE PROC-HANDLE = hdl:
  DISPLAY proc-text.
END.
CLOSE STORED-PROCEDURE pcust WHERE PROC-HANDLE = hdl. 

NOTES

SEE ALSO

CLOSE STORED–PROCEDURE Statement, PROC–STATUS Function, RUN STORED–PROCEDURE Statement


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095