Phil, A long time ago, I wrote a program called DDDEFCHK that used the SMP/E API to check if normal DDDEF data sets exist - there is also a DDDEFPTH companion program to handle paths.
I believe these programs still exist in the public domain in the CBT tape site (www.cbttape.org) - see files 411 and 412. Rob Scott Rocket Software -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Phil Smith III Sent: Thursday, October 5, 2023 4:52 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: SMP/E and PATH existence EXTERNAL EMAIL Is there a way to get SMP/E to validate the existence of a USS path on a DDEF? Thanks to y'all's help, I have externalized the USS path we use to a variable. However, if the directory doesn't exist, the user can get pretty far (to the RECEIVE step) before that's recognized. I've looked at the SMP/E doc but didn't find anything. I realize I can do this with BPXBATCH: //TESTDIR EXEC PGM=BPXBATCH,PARM='SH test -d &USSPATH' Or with IDCAMS: //TESTDIR EXEC PGM=IDCAMS,PARM='GRAPHICS(CHAIN(SN))' //SYSIN DD *,SYMBOLS=(JCLONLY,JESJCL) ALLOCATE DDNAME(VSHZFS1) PATH('&USSPATH') But this seems like something SMP/E might reasonably also do "natively". Can it? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ================================ Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ Main Office Toll Free Number: +1 855.577.4323 Contact Customer Support: https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - http://www.rocketsoftware.com/manage-your-email-preferences Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy ================================ This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN