Won't work for USS files, though. Those will need BPXWDYN. https://www.ibm.com/docs/en/zos/3.1.0?topic=tef-listdsi says > Restriction: LISTDSI does not support files in the UNIX file system. > Unpredictable results might occur.
9 *-* "ALLOCATE DD("Arg(1)")" Arg(2) >>> "ALLOCATE DD(SOMEFILE) PATH('/u/gsknick/some.file')" 10 *-* Call ListDSI Arg(1) "FILE" >>> "SOMEFILE FILE" >>> "16" 11 *-* Trace N RESULT =16 SYSREASON =0002 SYSMSGLVL1=IKJ58400I LISTDSI FAILED. SEE REASON CODE IN VARIABLE SYSREASON. SYSMSGLVL2=IKJ56231I UTILITY DATA SET NOT ALLOCATED, SYSTEM OR INSTALLATION ERROR+ 27 *-* Call BPXwdyn "info fi("Arg(1)") inrtdsn(inrtdsn) inrtpath(inrtpath)" >>> "info fi(SOMEFILE) inrtdsn(inrtdsn) inrtpath(inrtpath)" >>> "0" 28 *-* Trace N RESULT =0 S99MSG.0 =0 INRTDSN =...PATH=.SPECIFIED... INRTPATH =/u/gsknick/some.file ¬R On Thu, 22 Aug 2024 00:36:59 +0000, Seymour J Metz <sme...@gmu.edu> wrote: >I've never tried it, but it should. > >From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of >Paul Gilmartin <0000042bfe9c879d-dmarc-requ...@listserv.ua.edu> >Sent: Wednesday, August 21, 2024 6:16 PM >On Wed, 21 Aug 2024 9::54:38 +0000, Seymour J Metz wrote: >>LISTDSI has a FILENAEE option to test a ddname. >> r == LISTDSI(ABCXYZ FILE) >Will that work for tapes? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN