Zfile bpxwdyn info retrieval

General discussion on the JZOS batch launcher and toolkit
Post Reply
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Zfile bpxwdyn info retrieval

Post by jriemer »

Is there JZOS Zfile bpxwdyn support for retrieving the dsname for a given DDname, and if so, what would the syntax be? The documentation seems to limit this capability to REXX. Thanks.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

The ZFile.bpxwdyn() api doesn't allow for any retrieval; only return codes are returned.

But -

- you can use ZFile.allocDummyDDName() to return a DDNAME allocated to DUMMY. You can then use this DDNAME with bpxwdyn() and the "reuse" option.

- for an an open ZFile instance, you can use the method getActualFileName() to get the DSNAME of an open dataset.

I could be wrong, but I don't believe that bpxwdyn, even with REXX, allows you to get the dsname for an existing ddname.
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Post by jriemer »

I'm using tape, so getActualFileName returns null...
Post Reply