Statement | Use with OCCURs and partial REDEFINES | Use with Variable Record Layouts | Notes |
---|---|---|---|
ALTER TABLE | No | No | |
CREATE INDEX | No | No | |
CREATE INDEX IN DICTIONARY | No | Yes | |
CREATE TRIGGER | No | No | |
DELETE | No | Yes | |
DROP TABLE | Yes | Yes | A DROP TABLE statement removes all of the entries from the system tables. The data file itself is not deleted or modified. Also, when you drop a main table, a message informs you to drop any dependent tables if any are detected. A dependent table depends on a main table and results from conditions such as an OCCURS that contains an index or from partial REDEFINES. Once you drop the dependent tables, you can drop the main table. |
INSERT INTO | No | No | |
UPDATE | Yes | Yes | An UPDATE statement cannot update a column on which a table filter has been defined. A table filter is a logical expression associated with a table. Table filters are defined as part of your metadata in the XML files. |
All other SQL statements listed in SQL Engine Reference. | Yes | Yes | See SQL Grammar in Zen. |
Component | Purpose | Location1 |
---|---|---|
w3cobolschemaexec100.dll | 32-bit library of routines used by Schema Executor | Windows server: file_path\Zen\bin\ |
w64cobolschemaexec.dll | 64-bit library of routines used by Schema Executor | Windows server: file_path\Zen\bin\ |
Linux: libpsqlcobolschemaexec100.so macOS: libpsqlcobolschemaexec100.dylib | 32-bit and 64-bit library of routines used by Schema Executor | Linux server: /usr/local/actianzen/lib |
cobolschemexecmsgrb.dll | Message resource bundle used by 32-bit library of routines | Windows server: file_path\Zen\bin\ |
w64cobolschemaexecmsgrb.dll | Message resource bundle used by 64-bit library of routines | Windows server: file_path\Zen\bin\ |
Linux: libpsqlcobolschemaexecmsgrb.so macOS: libpsqlcobolschemaexecmsgrb.dylib | Message resource bundle used by 32-bit and 64-bit library of routines | Linux server: /usr/local/actianzen/lib |
cobolschemaexec.xsd | Control file (document type definition) used by Schema Executor when processing XML files | Windows server: file_path\Zen\schemas Linux or macOS server: /user/local/actianzen/schemas/ |
cobolschemaexec.log | Default logging file for messages produced by Schema Executor when processing of XML files | Window server: file_path\Zen\logs Linux or macOS server: /usr/local/actianzen/logs/ |
cobolschemaexec.exe | Utility that populates the system tables used by the Relational Engine to interpret the ISAM data as normalized SQL tables. Also referred to as Schema Executor. | file_path\Zen\bin\ |
cobolschemaexec | Utility that populates the system tables used by the Relational Engine to interpret the ISAM data as normalized SQL tables. Also referred to as Schema Executor. | Linux or macOS installation: /usr/local/actianzen/bin/ |
SampleMainTable.xml | Sample XML template that defines data for a simple table. | Windows server and client: file_path\Zen\samples\cobolschemaexec Linux or macOS installation: /usr/local/actianzen/samples/cobolschemaexec |
SampleMainWithOccurs.xml | Sample XML template used to define data that contains OCCURS constructs. | Windows server and client: file_path\Zen\samples\cobolschemaexec Linux or macOS installation: /usr/local/actianzen/samples/cobolschemaexec |
SampleMainWithRedefines.xml | Sample XML template used to define data that contains REDEFINES constructs. | Windows server and client: file_path\Zen\samples\cobolschemaexec Linux or macOS installation: /usr/local/actianzen/samples/cobolschemaexec |
SampleVariantRecord.xml | XML template used to define data that contains variable record layouts. | Windows server and client: file_path\Zen\samples\cobolschemaexec Linux or macOS installation: /usr/local/actianzen/samples/cobolschemaexec |
A log file on a Windows client or a Linux client is optional and may be specified when Schema Executor is run | Same as current directory if no path is specified. Otherwise, location depends on user-supplied path. | |
1For default locations of Zen files, see Where are the files installed? in Getting Started with Zen. |
Option | Meaning |
---|---|
XMLfilename | The file name of the XML schema that defines the layout of the data. Required option. See Step 1: Modify the Sample XML Templates. |
databasename | The name of the Zen database accessed by your application. Required option. If the database specified does not exist, the utility prompts for a path and file name. |
-s servername | The name or IP address of the server running the Zen database engine. You may use "localhost" as the name if running SchemaExec on the same machine as the database engine. If servername is not specified, the local machine is assumed to be the server. |
-u login_id | The user name required to access a secure database. See Zen Security in Advanced Operations Guide for a discussion of the Zen security models. |
-p password | The password required to access a secure database. See Zen Security in Advanced Operations Guide for a discussion of the Zen security models. |
-i svr_loginid | The login name required to access the operating system on a remote machine. This option is required if SchemaExec is processing an XML file located on a remote server. |
-c svr_password | The password required to access the operating system on a remote machine. This option is required if SchemaExec is processing an XML file located on a remote server. |
-l log_file | Log file to use for messages produced during processing of the XML file. If you execute SchemaExec on a machine running the Zen database engine, a default log is created automatically. You do not need to use the -l log_file option. The default log is named cobolschemaexec.log. If you execute SchemaExec on a client machine (a machine not running the Zen database engine), you can specify a log file for the client machine. See Log Messages. |
-h or -? | Display command usage. Ignore all other options. |
Error Code | Description |
---|---|
CB001 | Unknown error |
CB002 | Property name attribute missing |
CB003 | Both MAINTABLE and VARIANTRECORDTABLES not supported |
CB004 | Occurs Table Name specified is invalid. |
CB005 | Occurs Count specified is invalid. |
CB006 | Occurs Mapping Index specified is invalid. |
CB007 | TableName - Duplicate table name |
CB008 | FieldName - Duplicate field name |
CB009 | IndexName - Duplicate index name |
CB010 | TableName parameter is not specified. |
CB012 | Identifier contains invalid characters. |
CB013 | Offset has to be a nonnegative integer. |
CB014 | Identifier length cannot exceed 20 characters. |
CB016 | Precision has to be greater than zero. |
CB017 | Invalid precision specified for FieldName |
CB018 | Scale cannot be greater than precision for FieldName. |
CB019 | Log and XML file names must be different. |
CB022 | TableFilter cannot have more than 255 characters. |
CB023 | FieldName is not a field of TableName. |
CB024 | TableFilters should be defined for all REDEFINES Table or for NONE. |
CB025 | Incorrect Parent Element |
CB028 | Identifier name identifiername should start with an alphabetic character. |
CB029 | Identifier name identifiername cannot be a keyword. |
CB050 | DataFile doesn't exist at DatabasePath. |
CB051 | OCCURS/REDEFINES length must be a nonnegative integer. |
CB052 | Length of Btrievefilename cannot exceed 64 characters. |
CB057 | No index specified for ParentTableName |
CB099 | Parser error |
CB100 | Schemaexec finished successfully. |
CB101 | Invalid value for command line argument argument |
CB102 | Value for Password cannot be specified without Login. |
CB103 | Could not connect to DatabaseName |
CB105 | Could not create database DatabaseName in the dictionary path Databasepath |
CB106 | Could not create the specified DSN |
CB108 | Could not close the database databasename |
CB109 | Could not read data from XML file |
CB110 | Could not drop the database |
XML Entity | Used For |
---|---|
< | less than (<) |
> | greater than (>) |
& | ampersand (&) (AND) |
" | double quotes (") |
' | single quotes (') |