Syntax:
DO DO LABEL frank DO PROTECT someobject
DO ... END is the simple grouping construct. Looping forms of the DO from Rexx use the LOOP keyword in NetRexx.
If a LABEL is specified on the DO, then a LEAVE which specifies that label may be used to leave the DO group, and the END that ends the block may optionally specify the label of the DO group for additional checking. For example:
do label sticky ... if x then leave sticky ... end sticky
If PROTECT is given it is followed by a term that must resolve to an object reference; while the DO group is being executed, the object is protected -- that is, the code in the DO group has exclusive access to the object.
Both PROTECT and LABEL may be specified, if needed.
CATCH and FINALLY can be used with DO (see "Exceptions" section for details).
[ previous section | contents | next section ]
From 'netrexx.doc', version 0.75.
Copyright(c) IBM Corporation, 1996. All rights reserved. ©