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!>
>
z/OS Rexx ought to be able to do likewise with SYSCALL readdir:
<https://www.ibm.com/docs/en/zos/2.5.0?topic=descriptions-readdir>.
    ...
>       dir = word(verz.i, 5)
>   
Might that be misled by pathnames containing blanks?

>you may notice the recursive call of the procedure "tree".
> 
... with local variables protected by "procedure".

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to