You could use the cat "//'zos.dsname'" and it will either work on you will get a error message:
/u/user/cat "//'USER.TEST'" cat: //'USER.TEST': EDC5049I The specified file name could not be located. 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 <[email protected]> On Behalf Of [email protected] Sent: Tuesday, July 2, 2019 8:37 AM To: [email protected] Subject: USS script : how to test that a MVS Dataset exists ? Hello,I would like to "test" if a MVS Dataset exist (is catalogued) during the /etc/rc script. As far as I know, since /etc/rc script run during USS initialisation, TSO services are not yet available. So I cannot use the "tso" Unix command to issue a LISTCAT. Actualy my need is to perform a mount command in this process. But I do not want to return Error messages, if the HFS/ZFS doesn't exist. That's why I need to test that the dataset is catalogued/exist before calling the Mount service. Do you have any idea ? Regards,Laurent ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
