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

How To - Debug: BPXWDYN error #290

Closed
rsjrny opened this issue Dec 2, 2022 · 3 comments
Closed

How To - Debug: BPXWDYN error #290

rsjrny opened this issue Dec 2, 2022 · 3 comments

Comments

@rsjrny
Copy link

rsjrny commented Dec 2, 2022

I am receiving the following error when compiling a cobol module

Caused by: com.ibm.dbb.build.BuildException: BGZTK0016E An error occurred running BPXWDYN command 'alloc dd(TMP00004) shr'.

I know this is caused by a blank property value but I cannot tell what one it is because I have no idea where TMP00004 is being assigned.

Are there any suggestions other than adding a bunch of println statements in the groovy files to track it down?

thanks

@dennis-behm
Copy link
Member

@rsjrny

Rather than implementing checks for blank properties in the build scripts, I think it would be good if the DBB toolkit is validating and checks for blank inputs for the DDStatement API before invoking BPXWDYN.

So, what do you think if the toolkit would throw an DBB exception when the methods of DDStatement receive an empty String?

  • DDStatement().name()
  • DDStatement().dsn()
  • DDStatement().options()

Would you mind to open an enhancement request under https://ideas.ibm.com for DBB?

To troubleshoot the situation, my recommendation is to enable the logging of the DBB toolkit, which then will list all the allocations. While the order of allocations might differ, you cannot trust the order in the build script and it is better to troubleshoot with the tracing enabled.

Dennis

@dennis-behm
Copy link
Member

Please be aware, that DBB 1.x and 2.0 use different logger systems.

DBB 2.0 uses the Simple Logging facility, for details https://www.ibm.com/docs/en/dbb/2.0.0?topic=customization-logging-framework

@rsjrny
Copy link
Author

rsjrny commented Dec 10, 2022

I left an enhancement request in ideas. thanks

@rsjrny rsjrny closed this as completed Dec 10, 2022
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