Thank you Paul - just figured that out by more digging 😊
Lionel B. Dyck <sdg>< Website: http://www.lbdsoftware.com "Worry more about your character than your reputation. Character is what you are, reputation merely what others think you are." - John Wooden -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Beesley, Paul Sent: Monday, December 9, 2019 7:18 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: readdir ? For the second stem variables, you have to further qualify them when referring to them. e.g. s.1.1 Working example: /* REXX */ call syscalls 'ON' dir = '/etc' address syscall "readdir (dir) dir1. dir2." do j = 0 to dir1.0 say dir1.j end do j = 1 to dir1.0 say dir2.j.1 dir2.j.2 dir2.j.3 dir2.j.4 dir2.j.5 dir2.j.6 dir2.j.7 say dir2.j.8 dir2.j.9 dir2.j.10 dir2.j.11 dir2.j.12 dir2.j.13 end call syscalls 'OFF' exit I don't know without looking in the manual what all the dir2.x.y variables are! Regards and thanks Paul -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Lionel B Dyck Sent: Monday, December 09, 2019 12:36 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: readdir ? I'm trying to use the readdir command in rexx and it is partially working and partially not. This is what I've tried - both with the d. s. in quotes and not in quotes. The d. returns data and the s. does not. The doc implies that s. should return statistics info on the respective directory entry from d. Please advise - I'm sure it is something trivial I'm missing. I've looked around and seen examples like that that work so it could be my old eyes not seeing something. /* rexx */ dir = '/u/me/git/zigi' address syscall 'readdir' dir 'd. s.' say d.0 s.0 Thanks in advance Lionel B. Dyck <sdg>< Website: <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lbdsoftware.com%2F&data=02%7C01%7Cpaul.beesley%40atos.net%7C923409f8da25473953c608d77ca49451%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C637114918614042492&sdata=JQ11E1QF3lSv1Ym1cA9DUP0Fw86e8wGLtnd%2B%2FwPFtAY%3D&reserved=0> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lbdsoftware.com&data=02%7C01%7Cpaul.beesley%40atos.net%7C923409f8da25473953c608d77ca49451%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C637114918614042492&sdata=D5Vao40HYglGiW62pfsV5XpCf%2BNMn2P05atbp%2Fgw%2BWs%3D&reserved=0 "Worry more about your character than your reputation. Character is what you are, reputation merely what others think you are." - John Wooden ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Atos, Atos Consulting and Canopy The Open Cloud Company are trading names used by the Atos group. The following trading entities are registered in England and Wales: Atos IT Services UK Limited (registered number 01245534), Atos Consulting Limited (registered number 04312380) and Canopy The Open Cloud Company Limited (registration number 08011902). The registered office for each is at Second Floor, Mid City Place, 71 High Holborn, London, WC1V 6EA. The VAT No. for each is: GB232327983. This e-mail and the documents attached are confidential and intended solely for the addressee, and may contain confidential or privileged information. If you receive this e-mail in error, you are not authorised to copy, disclose, use or retain it. Please notify the sender immediately and delete this email from your systems. As emails may be intercepted, amended or lost, they are not secure. Atos therefore can accept no liability for any errors or their content. Although Atos endeavours to maintain a virus-free network, we do not warrant that this transmission is virus-free and can accept no liability for any damages resulting from any virus transmitted. The risks are deemed to be accepted by everyone who communicates with Atos by email. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN