A call to BPXWUNIX perhaps? I believe there is an “exists” function in there.
But I also discovered that the “df” command can help you with both of your needs: df /u/unknown Mounted on Filesystem Avail/Total Files Status df: FSUM6412 couldn't stat file system for "/u/unknown": EDC5129I No such file or directory. df /u/tsouser Mounted on Filesystem Avail/Total Files Status /u/tsouser (OMVS.USER.TSOUSER.ZFS) 1891838/1915200 4294967212 Available HTH Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Lizette Koehler Sent: Monday, November 11, 2024 7:07 PM To: [email protected] Subject: How to verify if a uss path exists I have the need to validate 100’s of home directories on TSO/RACF. IDs I am using IRRXUTIL to get the home directory using REXX. What can I use to see if the path on the home directory exists? Example Tsoid MYTSO has a home directory of /tsousr/MYTSO What do I use to see that the path. /tsousr/MYTSO exists? I would like to keep this in the one REXX process And I would like to know what z/OS dataset it is in Thank you Lizette -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
