/* ttParam is a temp-table that has one record with these fields:
parm_1 parm_2 ... parm_n run-name nparms datatypes, extent nparms iomodes, extent nparms */ DEFINE INPUT PARAMETER TABLE-HANDLE ttParam NO-UNDO. DEFINE VARIABLE hCall AS HANDLE NO-UNDO. DEFINE VARIABLE hDtypes AS HANDLE NO-UNDO. DEFINE VARIABLE hIOmodes AS HANDLE NO-UNDO. DEFINE VARIABLE ix AS INTEGER NO-UNDO. ASSIGN hDtypes = ttParam:BUFFER-FIELD("datatypes") hIOmodes = ttParam:BUFFER-FIELD("iOmodes"). ttParam:FIND-FIRST. CREATE CALL hCall. ASSIGN hCall:CALL-NAME = ttParam:BUFFER-FIELD("run-name"):BUFFER-VALUE hCall:NUM-PARAMETERS = ttParam:BUFFER-FIELD("nparms"):BUFFER-VALUE. FOR ix = 1 TO hCall:NUM-PARAMETERS: hCall:SET-PARAMETER(ix, hDtypes:BUFFER-VALUE(ix), hIOmodes:BUFFER-VALUE(ix), ttParam:BUFFER-FIELD(ix):BUFFER-VALUE). END. hCall:INVOKE( ). DELETE OBJECT hCall. |