IBM / ibmi-bob

A build system for creating IBM i-native objects using GNU Make.
https://ibm.github.io/ibmi-bob
Apache License 2.0
47 stars 20 forks source link

Ability to override settings on SQL table build #313

Closed arco400 closed 2 months ago

arco400 commented 4 months ago

When I create a table with BOB, how can I override the compile settings?

In rules.mk I have:

docqumtd.file: private COMMIT := *CHG docqumtd.file: docqumtd.table

This results in creation of the table, however I need to run this under commitment, so COMMIT(*CHG)

=== Creating SQL TABLE from Sql statement [docqumtd.table] in CMKTSDTA RUNSQLSTM srcstmf('/home/SIMONSEA/builds/app/src/dta/docqumtd.table') DBGVIEW(*SOURCE) TGTRLS() OUTPUT(*PRINT) MARGINS(1024) COMMIT(*NONE ) ✓ DOCQUMTD.FILE was created successfully!

How can I achieve this?

edmundreinhardt commented 3 months ago

base onhttps://vscode.dev/github/IBM/ibmi-bob/blob/fix/issue314_for_pseudo_source_respect_exit_code/src/mk/def_rules.mk#L439-L440 I would have expected that to work. @irfanshar could you take a look?