On Sat, 24 Aug 2024 10:46:03 -0700, Ed Jaffe wrote: >On 8/24/2024 10:25 AM, Billy Ashton wrote: >> Hi Ed, that sounds interesting, too...but is it something I can do >> from Rexx without adding the complexity of having to create an ASM >> routine, too? > >Unfortunately, no. A pure-REXX solution will always involve chasing >control blocks. There is no way to call system services directly. > You know better than that. You added a specification in order concluded it was impossible..
>A tiny HLASM program would be needed. IMHO the DEVTYPE approach is >preferable to a TIOT examination loop. > The OP preferred a REXX solution, yet many respondents flaunted their expertise with other languages long after he added that BPXWDYN (REXX) works with excellent performance. If TOCTTOU is a concern (unlikely) simply perform an open, BPXDYN with count of 0 and (OPEN option. What does DEVTYPE say for an allocated UNIX file? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN