On 30/06/2022 5:33 am, Paul Gilmartin wrote:
On Wed, 29 Jun 2022 22:22:39 +0200, Bernd Oppolzer wrote:
This is an old OS/2 REXX program (from the 1990s, IIRC),
used to traverse a directory tree recursively and issue a command in
every subdirectory found:
<snip!>
... with local variables protected by "procedure".
Protected? That's a good one! Another reason to hate on REXX is the lack
of lexical scoping. It's ok for small programs but as soon as you start
to scale
it's a nightmare when you"i" loop counter gets clobbered in a
subroutine. "procedure" helps but then you have to use "expose" which
normally results in
using a compound global variable such as g._namespace. REXX is a
language that you program into.
You have choices on z/OS now kids!
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN