Lionel, many thanks to have tried to help me.
If nobody has an idea, I will need to open an RFE to IBM to extend the "if test
-e" command to MVS datasets. :-(
Le mardi 2 juillet 2019 à 16:25:54 UTC+2, Lionel B Dyck <[email protected]>
a écrit :
Laurent - you've exhausted what I know - hopefully someone else can provide
you with the info that you need.
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
Laurent Grisel
Sent: Tuesday, July 2, 2019 9:23 AM
To: [email protected]
Subject: Re: USS script : how to test that a MVS Dataset exists ?
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 <[email protected]>
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 <[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
----------------------------------------------------------------------
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
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN