zowe › dbm-db2 › check › ddl
Validate the syntax of input DDL and optionally verify Db2 object dependencies. Use this command to ensure that the syntax of the input DDL is valid. You can also optionally verify that the objects to be created do not exist on the Db2 subsystem and that the related objects that are required for successful creation of the objects exist on the Db2 subsystem or in the input DDL. You can generate input DDL using the 'zowe dbm-db2 generate ddl' command.
Usage
zowe dbm-db2 check ddl <local-input-ddl-filename> [options]
Positional Arguments
-
local-input-ddl-filename
(string)- Specifies the local input file that contains the DDL statements for the Db2 objects that you want to validate on a target subsystem. Typically, this file is created by a 'zowe dbm-db2 generate ddl' command or retrieved from an archive. You can edit this file.
Required Options
-
--target-db2
|--td
(string)- Specifies the target Db2 subsystem ID where you want to validate the DDL.
Options
-
--verify
|-v
(string)-
Specifies whether to verify that the objects to be created do not exist on the Db2 subsystem and that the related objects that are required for successful creation of the objects exist on the Db2 subsystem or in the input DDL.
Default value: no
Allowed values: yes, no
-
-
--modification
|-m
(string)-
Identifies an existing named set of server-managed default parameter values that control the execution behavior of the zowe dbm-db2 commands. For example, you can use a modification to identify a set of default values that differ from the set of values that are normally used.
For more information about using the modification option, see the DBM Data Service documentation at https://techdocs.broadcom.com/db2mgmt.
-
-
--error-file
|--ef
(string)-
Specifies the local output error file in YAML format that contains errors that occurred during execution of the command.
Default value: error.log
-
Profile Options
-
--dbm-db2-profile
|--dbm-db2-p
(string)- The name of a (dbm-db2) profile to load for this command execution.
-
--base-profile
|--base-p
(string)- The name of a (base) profile to load for this command execution.
Base Connection Options
-
--host
|-H
(string)- Host name of service on the mainframe.
-
--port
|-P
(number)- Port number of service on the mainframe.
-
--user
|-u
(string)- User name to authenticate to service on the mainframe.
-
--password
|--pass
|--pw
(string)- Password to authenticate to service on the mainframe.
-
--reject-unauthorized
|--ru
(boolean)-
Reject self-signed certificates.
Default value: true
-
-
--token-type
|--tt
(string)- The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.
-
--token-value
|--tv
(string)- The value of the token to pass to the API.
-
--cert-file
(local file path)- The file path to a certificate file to use for authentication
-
--cert-key-file
(local file path)- The file path to a certificate key file to use for authentication
Examples
-
Validate DDL statement syntax of the DDL statements in the sample.sql file on the 'TEST' Db2 subsystem:
zowe dbm-db2 check ddl sample.sql --target-db2 TEST
-
Validate DDL statement syntax and verify object dependencies:
zowe dbm-db2 check ddl sample.sql --target-db2 TEST --verify yes