Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer allocation of working files until they are used #526

Open
FALLAI-Denis opened this issue Jul 5, 2024 · 1 comment
Open

Defer allocation of working files until they are used #526

FALLAI-Denis opened this issue Jul 5, 2024 · 1 comment

Comments

@FALLAI-Denis
Copy link

Hi,

The working files necessary for the build are allocated at the start of the process without even knowing if they will be used.
If we declare several "languages" in zAppbuild, all the files of all these "languages" are allocated, while the build will probably not use them all, in particular during a userBuild which often only processes a single element and therefore a single “language”.

The allocation of working files should be deferred until they are used:

  • at least by "language": it is either the triggering of the build script which must allocate the working files necessary for this "language", or the fact that the "language" was identified during the analysis of the elements to be built
  • if possible by "element": in the same "language" there can be build variants, and therefore work files specific to these variables, such as for example a load library dedicated to batch programs and a load library dedicated to CICS or IMS programs, just like a program doing Db2 access needs a DBRM file which will not be necessary for a program not doing Db2 access

Thanks

@dennis-behm
Copy link
Member

Hi @FALLAI-Denis,

the allocation is done inside the language scripts. If you only build a COBOL file (let's say via User Build), then only the necessary datasets for the COBOL compilation are created.

See:

// create language datasets
def langQualifier = "cobol"
buildUtils.createLanguageDatasets(langQualifier)

Today, zAppBuild does not have the capability to store outputs in dedicated libs for CICS or IMS. Therefore I believe the feature you are asking for already exists. Would you agree with that?

Dennis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants