Zfile bpxwdyn info retrieval
Zfile bpxwdyn info retrieval
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.
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.
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.