

Next:UNTRACE
stops the tracingUp:PROCEDURESPrevious:TRACE
starts the tracing
TRANS transfers a message
Syntax:
TRANS(<origin list>, | FIRST | LAST| <origin pointer> |, | A | B |,
<destination list>, | FIRST | LAST | <destination pointer> |);
It is used to transfer a message from one position in a list to another
position in another or the same list.
-
<origin list> is the name of the list from which the message
is taken.
-
FIRST | LAST | <origin pointer> indicates the position
of the message to be sent.
-
<destination list> is the name of the list to which the
message has to be sent.
-
| A | B | is only used if a <destination pointer>
follows. It is used to indicate if the message has to be put after or before
the position indicated by the pointer.
-
FIRST | LAST | <destination pointer> indicates the position
to which the message has to be sent.
This procedure can be used in nodes of any type.
Example:
SCAN(IL_Depot, P_Item) IF Cost > 500 THEN STOPSCAN;
TRANS(IL_Depot, P_Item, B, NewProc, P_Rear);
After a scan in IL of node Dept the first message with Cost
> 500 is pointed. Then it is transferred to the EL of node NewProc
before the element pointed by P_Rear.
domingo c
Mon Mar 20 17:37:52 PST 2000