Product Documentation

FairCom RTG COBOL Edition User's Guide

Previous Topic

Next Topic

<sqlize>

The sqlize option indicates whether to attempt linking the table to FairCom DB SQL when creating a new table. If this option is set to yes, the necessary operations to make the file accessible from FairCom DB SQL are performed when the file is open with OUTPUT or EXTEND mode. This option is disabled by default. The sqlize option accepts XFD or XDD files as input.

Accepted Values

Value

Effect

Synonyms

yes

Files opened with OUTPUT or EXTEND mode are linked to FairCom DB SQL.

y, true, on, 1

no

No attempt to link table is made. This is the default value.

n, false, off, 0

Attributes

Attribute

Description

Synonyms

xfd

Path to XFD data definition file. For example:

<sqlize xfd="custmast.xfd">yes</sqlize>

If a directory is specified, a file with the same name but an ".xfd" extension is searched. See XFD/XDD Notes below.

 

xdd

Path to XDD data definition file. For example:

<sqlize xdd="custmast.xdd">yes</sqlize>

If a directory is specified, a file with the same name but an ".xdd" extension is searched. See XFD/XDD Notes below.

 

database

Database name to add the file to.
The default value is "ctreeSQL".

db

password (deprecated)

FairCom RTG ADMIN password.
The default value is "ADMIN".

The user performing the sql* operation must have either DBA or RESOURCE SQL privileges in order for the operation to succeed or a FairCom RTG error 456 (group access denied) will be returned.

pw

symbolic

Optional table name to use when adding file to a database.

symb

prefix

Optional prefix for table or symbolic name.

 

owner

Optional user name to assign table ownership.

 

public

Optionally grant public access permissions. Values:
"yes" : Grant public permissions.
"no" : Turns off CRC checks.
"readonly" : Grant read-only permission.

(The owner of the table and the DBA have all the permissions)

 

convention

Numeric storage convention ID. Values:

A - ACUCOBOL-GT
B - MBP COBOL
D - Data General
I - IBM
M - Micro Focus
N - NCR COBOL
R - Realia COBOL
V - VAX COBOL

The default value is "M" for EXTFH or "A" for ACUCOBOL-GT.

conv, numformat

rules

Optional path to rules file - see Define External Rules

rule

XFD / XDD Notes

The xfd and xdd attributes can be used to specify an XFD or XDD file to use for sqlization. Notice that either a file name or a directory name may be specified.

Values may contain %n and %d substitution specifiers. For more information about substitution specifiers, please refer to the topic Substitution specifiers.

Note: If both xfd and xdd attributes are specified, the logic first looks for an XDD file and if the file is not found, sqlize falls back to looking for an XFD file.

Note: If an XDD is directly specified with ctutil -make, any XDD specified with <sqlize> in a ctree.conf configuration is ignored in favor of the passed in XDD.

Examples

<sqlize xfd="custmast.xfd" symbolic="customers">yes</sqlize>

<sqlize xfd=".\xfd\" prefix="2012">yes</sqlize>

<sqlize xfd="%n.xfd">yes</sqlize>

TOCIndex