configuration section. repository. class sp as "com.iscobol.lib.StoreProcedure" . working-storage section. 77 p1 pic x(128). 77 p2 pic s9(9). 77 p3 pic 9(5). 77 rc pic s9(9). procedure division. set rc to sp:>call("remote-sub"):>input(p1) :>output(p2) :>inout(p3) :>end(). |
configuration section. repository. class sp as "com.iscobol.lib.StoreProcedure" . working-storage section. 77 spo object reference sp. 77 p1 pic x(128). 77 p2 pic s9(9). 77 p3 pic 9(5). 77 rc pic s9(9). procedure division. set spo to sp:>call("remote-sub"):>input(p1) :>output(p2) :>inout(p3) perform until rc = 0 set rc to spo:>end() end-perform. |
program-id. remote-sub. working-storage section. *> routine variables here linkage section. 77 p1 pic x(128). 77 p2 pic s9(9). 77 p3 pic 9(5). procedure division using p1, p2, p3. main-logic. *> routine logic here goback. |