Progress
Version 9
Product Update Bulletin
Example 2 — Running an External Procedure Persistently and One Of Its Internal Procedures
The next example, p-diexm2.p, is a bit more complicated. It does two things:
- Dynamically invokes the external procedure
persis.p
persistently.- Dynamically invokes an internal procedure of
persis.p
, internal-persis-proc, with an input parameter of type INTEGER with the value 333.
In p-diexm2.p, when
persis.p
is invoked dynamically, the handle of the running persistent procedure is stored in CALL’s IN-HANDLE attribute automatically, Then, when internal-persis-proc is invoked dynamically, Progress knows it resides in the running persistent procedure whose handle is stored in CALL’s IN-HANDLE attribute.p-diexm2.p also illustrates using a single CALL handle multiple times — in this case, twice. The next example, p-diexm3.p, demonstrates this in more detail.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |