Comments (6)
Sorry, don't like that solution. If it's implemented then I would like to have a choice, do the spin through or not...
Doesn't it work if you set the isSQL-option in file.props, or do you find it a bit messy ?
from dbb-zappbuild.
Good point. Setting this in a prop file hard codes it for all programs in the project. Not ideal. With spinning across dependencies we can be more selective.
from dbb-zappbuild.
No, it's set on module-level.
OK, so you have your SQL-code in a lot of copybooks right ? More than 50% of your code, otherwise you will 'pay' for it in every build instead of dealing with it only in the modules involved...
from dbb-zappbuild.
Kind of - yes. Plus I worry about always passing the "SQL" compiler options for non-DB2 programs. I'm not sure thats a good practice.
from dbb-zappbuild.
Probably, I have missed something in the discussion. You can overwrite the isSQL
property on a file level. If you have a couple of programs, then you can add these files to this list. If you have naming conventions to indicate, you can also use wildcards. Here is an example for isCICS
from the Mortgage sample:
Within buildUtils.isSQL, this file property 'overwrite' is taken into consideration.
dbb-zappbuild/utilities/BuildUtilities.groovy
Lines 264 to 270 in 11c17f9
I assume, your previous build environment carries these information. Mapping the programs of type 'db2', with an extract of all the pgms in your dbb collection, can give you the delta where you need to set the isSQL
pgm in file.properties.
The proposed enhancement is expected to be expensive, because you would need to scan / query all copybooks referenced for the given COBOL file (for a userBuild and pipelineBuild).
from dbb-zappbuild.
Just a side comment pointing out that we already scan all copybooks referenced by a COBOL program so that we can identify and resolve them in the local Git repository to copy them to the copybook data set. This is done in BuildUtilities.copySourceFiles. It even creates a list of dependencies (https://github.com/IBM/dbb-zappbuild/blob/development/utilities/BuildUtilities.groovy#L81) that we could return from the method and check to see if any are marked isSQL.
I was mistaken. The dependency resolver returns physical dependencies which do not contain the isSQL flag. Looks like we would have to scan the dependencies a second time to get the logical files. This might be a good candidate for a stand alone sample in the DBB samples repository that customers that need it can integrate in their copy of zAppBuild.
from dbb-zappbuild.
Related Issues (20)
- Enhance processing of IMS programs HOT 8
- Question : zUnit - While Running the test case - Failed to load the User program getting SOC4 Abend HOT 6
- Reporting capabilities depend on metadata store connection / git repo in workspace HOT 1
- Encoding issue with new OR concatenation HOT 1
- Execute the build on a ZIIP.
- How to delete unwanted feature branch's collection from DB2
- Config JAVA environment settings for ZOS connect V2 HOT 2
- Build support for Java language in zAppbuild HOT 6
- Displaying a summary of build errors in build summary HOT 1
- Reporting capability creates empty files HOT 1
- Housekeeping of unused / dead code
- Issue in DBB User Build after enabling cobol_storeSSI HOT 3
- Line continuation for IDENTIFY statement HOT 1
- Misleading message in verbose output during lookup of last successful build result HOT 1
- Document if changed files got excluded from build scope HOT 1
- Missing properties HOT 1
- DBRM deployType should be driven by properties
- Use filters and folder names in the languageConfigurationMapping.properties HOT 2
- Processing of Binder control statement members
- BuildUtilities.copySourceFiles(BuildUtilities.groovy:100) - EDC5003I Truncation of a record occurred during an I/O operation.; errno=3 errno2=0xc0400060 last_op=60 errorCode=0x5620062 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbb-zappbuild.