Progress
Programming
Handbook
Run-time Parameters
Any persistent procedure created using a RUN statement invoked with INPUT, OUTPUT, or INPUT–OUTPUT run-time parameters continues to have access to these parameters after the RUN statement completes execution. The output values are returned to the caller at the time that the procedure returns from its instantiation. However the parameters remain available to the persistent procedure context just like local variables.
Buffer parameters work differently in persistent procedures. During execution of the instantiating RUN statement, a buffer is passed by reference and any new value returned, just as for a non-persistent procedure. However, after the procedure returns from creating its persistent context, Progress creates a copy of the buffer parameter and resets its cursors as an initially defined local buffer for use in the persistent context. Thus, to give the persistent procedure context continued access to a buffer from the calling (instantiating) context, both the calling and persistent context must define a common shared buffer.
NOTE: Run-time parameters passed to the internal procedures of a persistent procedure function no differently than if passed to any other internal or non-persistent procedure. For more information, see the "External Procedures" section.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |