Passing TEMP-TABLE as a parameter

gander

New Member
I want to pass a TEMP-TABLE as an input parameter to a called procedure. I have done it before, but I can't remember the syntax. I know the TEMP-TABLE has to be indentically defined in the calling and the called procedures, but there is a twist in the RUN statement or in the DEF INPUT PARAM statement.

Can anyone help?

Thanks
 
Hi.

Try something like this.

run procedure1 (input TABLE table1, output table table2).

procedure procedure1:
DEFINE INPUT PARAMETER TABLE FOR table1.
DEFINE OUTPUT PARAMETER TABLE FOR table2.
end.
 
Top