Hello Lionel !I tried with an actual HFS, and I get this from the command:
> cat //\'SYS2.IMS04.HFS.ROOTIMS.V14\'cat: //'SYS2.IMS04.HFS.ROOTIMS.V14': 
> EDC5092I An I/O abend was trapped.

Ok, but I get also this message in syslog:IEC143I 
213-8C,IFG0194D,WSYGRIS,STEP1,SYS00008,E61E,ZPS10G,SYS2.IMS04.HFS.ROOTIMS.V14

I would like to receive no message at all during this "test". I worry that my 
coworkers will search for an error, where there is none.

Regards,
Laurent 
 

    Le mardi 2 juillet 2019 à 15:43:47 UTC+2, Lionel B Dyck <lbd...@gmail.com> 
a écrit :  
 
 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 <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
laurent.gri...@yahoo.fr
Sent: Tuesday, July 2, 2019 8:37 AM
To: IBM-MAIN@LISTSERV.UA.EDU
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 
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  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to