I was wondering if there was a way to add directives to the DB2 DDL
files? Specifically, I am looking for something similar to the C
directives ifdef/ifndef where I can say
"if criteria_1 then use UPDATE DB CFG....100, otherwise use UPDATE DB
CFG....200".
I know I can use different DDL files in the calling script but I was
hoping to keep all my DB2 configs in one file to avoid confusion in
the future. Any suggestions?
DB2 9.7 added a lot of SQL PL features so you do have more control
to do this.
With older versions, you're much better off doing this via a scripting
language (ksh/bash/perl/etc).
Good luck,
Cheers
Serge
--
Serge Rielau
SQL Architect DB2 for LUW
IBM Toronto Lab