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 <[email protected]> wrote:
>I've never tried it, but it should.
>
>From: IBM Mainframe Discussion List <[email protected]> on behalf of
>Paul Gilmartin <[email protected]>
>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 [email protected] with the message: INFO IBM-MAIN