I have several different temp-tables and at some point after some operation I need to empty those tables so I can start all over again.
So I want to do something like this:
DEF TEMP-TABLE LabelData
FIELD... ...
DEF TEMP-TABLE AddressData
FIELD... ...
[...some procedure to fill the table of choice...]
and after that procedure is done I want to empty the tt that was used.
RUN EmptyTT(LabelData).
PROCEDURE EmptyTT:
DEFINE INPUT PARAMETER TABLE FOR {1}.
FOR EACH {1}:
DELETE {1}.
END.
END PROCEDURE.
This obviously doesn't work, but you get the idea.
So I want to do something like this:
DEF TEMP-TABLE LabelData
FIELD... ...
DEF TEMP-TABLE AddressData
FIELD... ...
[...some procedure to fill the table of choice...]
and after that procedure is done I want to empty the tt that was used.
RUN EmptyTT(LabelData).
PROCEDURE EmptyTT:
DEFINE INPUT PARAMETER TABLE FOR {1}.
FOR EACH {1}:
DELETE {1}.
END.
END PROCEDURE.
This obviously doesn't work, but you get the idea.