IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
40 stars 140 forks source link

Question - Use of System Symbol in dsnames or get System Symbols #342

Open FALLAI-Denis opened 1 year ago

FALLAI-Denis commented 1 year ago

Hi,

We would like to use system symbols in the names of our dsnames handled in zAppbuild because our scripts need to be contextual to the z/OS partition it is running on.

zAppbuild, or more specifically the DBB API, makes use of BPXWDYN for file allocations.

We have attempted to allocate files whose dsname includes system symbols, but our attempts so far have failed.

Do you know if this is possible?

If we can't create a file with a system symbol in the dsname, do you know if there is an API to query these system symbols? We tried to use the JZOS API JesSymbols.extract, but it doesn't return what we expect as information.

Thanks.

friedhelmmuench commented 1 year ago

Hi Denis,

maybe ZUtil.substituteSystemSymbols(String pattern) from JZOS is what you are looking for, see JavaDoc:
https://www.ibm.com/docs/api/v1/content/SSA3RN_11.0/com.ibm.java.api.11.doc/com.ibm.jzos/ibm.jzos/com/ibm/jzos/ZUtil.html#substituteSystemSymbols(java.lang.String)

FALLAI-Denis commented 1 year ago

@friedhelmmuench

Thank you very much, this will allow us to move forward.