Previous Topic: SEND TABLE—IDMS access modeNext Topic: SIGNON


SET

SET permits the user to set system management parameters in a signon profile or during a session. While some parameters are initially defined at system generation, others are assigned values during the signon process.

Note: For more information about system generation, see the CA IDMS System Generation Guide and System Generation Options of this manual.

Syntax:

►►─── SET ─┬─ ACCess ─┬─────┬┬─ OLQ ◄ ──┬──────────────────────────────┬──────►─
           │          └─ = ─┘└─ IDMs ───┘                              │
           ├─ default SCHema ─┬─────┬─ schema-name ────────────────────┤
           │                  └─ = ─┘                                  │
           ├─ NULl ─┬─────────────┬─┬─────┬── null-character ──────────┤
           │        └─ character ─┘ └─ = ─┘                            │
           ├─ INTerrupt count ─┬─────┬─ interrupt-count ───────────────┤
           │                   └─ = ─┘                                 │
           ├─ CONtinuation character ─┬─────┬─ continuation-character ─┤
           │                          └─ = ─┘                          │
           ├─ SEParator character ─┬─────┬─ separator-character ───────┤
           │                       └─ = ─┘                             │
           ├─ COMment character ─┬─────┬─ comment-character ───────────┤
           │                     └─ = ─┘                               │
           ├─ default DBName ─┬─────┬─ database-name ──────────────────┤
           │                  └─ = ─┘                                  │
           ├─ default DBNOde ─┬─────┬─ database-node ──────────────────┤
           │                  └─ = ─┘                                  │
           ├─ default ─┬─ DICtname ─┬─┬─────┬─ dictionary-name ────────┤
           │           └─ CATalog ──┘ └─ = ─┘                          │
           │                                                           │
           └─ default DICTNOde ─┬─────┬─ dictionary-node ──────────────┘
                                └─ = ─┘
─►─────────┬───────────────────────────────────────────────────────────┬──────►◄
           ├─┬─ PRInt ──────┬─ SIZe ─┬─────┬─ print-line-size ─────────┤
           │ ├─ LINe ───────┤        └─ = ─┘                           │
           │ └─ PRInt LINe ─┘                                          │
           ├─┬─ PRInt ──────┬─ COUnt ─┬─────┬─ print-line-count ───────┤
           │ ├─ LINe ───────┤         └─ = ─┘                          │
           │ └─ PRInt LINe ─┘                                          │
           ├─ FUNction control-key-value ─┬─────┬─ command-line ───────┤
           │                              └─ = ─┘                      │
           ├─ MAXimum SORt SIZe ─┬─────┬─ sort-size ───────────────────┤
           │                     └─ = ─┘                               │
           ├─ REPort DICTname ─┬─────┬─ dictionary-name ───────────────┤
           │                   └─ = ─┘                                 │
           ├─ user-specification ──────────────────────────────────────┤
           ├─ DATe ─┬─────┬─ literal ──────────────────────────────────┤
           │        └─ = ─┘                                            │
           └─ CODetable ─┬─────┬─ code-table-name ─────────────────────┘
                         └─ = ─┘

Expansion of user-specification

►►─── USEr ─┬─────┬─ user-name ───────────────────────────────────────────────►
            └─ = ─┘

 ►─── PASsword ─┬─────┬─ user-password ───────────────────────────────────────►
                └─ = ─┘

 ►─┬──────────────────────────────────────────────────────────┬───────────────►
   └─ INTernal storage page size ─┬─────┬─ storage-page-size ─┘
                                  └─ = ─┘

 ►─┬─────────────────────────────────────────────────────────┬────────────────►
   └─ REPort file page size ─┬─────┬─ report-file-page-size ─┘
                             └─ = ─┘

 ►─┬─────────────────────────────────────────────┬────────────────────────────►◄
   └─ REPort DICtname ─┬─────┬─ dictionary-name ─┘
                       └─ = ─┘

Parameters:

ACCESS=

Specifies the type of table CA OLQ will access.

The OLQ setting also allows you to use the SELECT statement with the following entities:

This is the default.

Access mode: Some CA OLQ commands are invalid when the access switch is set to IDMS.

Note: For more information about what commands become invalid, see the particular CA OLQ command in this chapter.

DEFAULT SCHEMA=

Sets a default schema so that any reference to table-name becomes schema.table-name.

Access mode: This parameter has no meaning when the access switch is set to OLQ.

Specifies the name of the schema. Schema-name be a name 1-18 characters long that follows the conventions for SQL identifiers.

Note: For more information about schemas, see the CA IDMS SQL Reference Guide.

NULL=

Specifies a display character used to portray data columns containing nulls. The default is the period (.).

Note: For more information about null processing, refer to the CA IDMS SQL Reference Guide.

INTERRUPT COUNT=

Specifies the number of records read before a retrieval is interrupted.

Note: See System Generation Options for details on setting the valid values during system generation.

CONTINUATION CHARACTER=

Specifies the character used to denote the continuation of a command. The continuation character is used in qfiles or batch input when the length of a CA OLQ command is greater than one line. The continuation character is a one-character alphanumeric value or special character. The system generation default is the hyphen (-).

SEPARATOR CHARACTER=

Specifies the character used to denote the separation of commands. The separator character is used to concatenate CA OLQ commands, permitting the entry of multiple commands on a single input line. The separator character is a one-character alphanumeric value or special character. The system generation default is the exclamation point (!).

Use with SELECT (IDMS mode)

Anytime you use separators with SELECT (IDMS mode) they must precede the SELECT statement.

For instance, the following is valid syntax:

delete table employee.job!select all from emp_id

However, CA IDMS/DB does not accept the syntax below because the separator (!) comes after the SELECT statement:

select all from emp_id!delete table employee.job
COMMENT CHARACTER=

Specifies the character used to denote the beginning of comments. The comment character signifies a remark; all text following the comment character is ignored during execution. The comment character is a one-character alphanumeric value or special character. The system generation default is the semicolon (;). All text following the comment character is ignored during execution.

Access mode: You cannot use comment characters with SELECT (IDMS mode) statements.

DEFAULT DBNAME=

Specifies the default database name.

DEFAULT DBNODE=

Specifies the default database node.

DEFAULT DICTNAME/CATALOG=

Specifies the default dictionary name.

DEFAULT DICTNODE=

Specifies the default dictionary node.

PRINT LINE SIZE=

Specifies the print line size.

PRINT LINE COUNT=

Specifies the print line count.

FUNCTION=

SET FUNCTION specifies a value for a control key.

MAXIMUM SORT SIZE=

Specifies the amount of storage allocated for sorts.

REPORT DICTNAME=

Specifies the dictionary used for saving report information. Job control language for batch jobs is also stored here.

This command is valid only in CV batch mode.

user-specification
DATE=

Specifies the date format in CA OLQ. You can use this date option to change the format of the current date by including $DATE in a PAGE HEADER/FOOTER command.

CODETABLE=

Specifies the code table to translate menu mode syntax and month literals used in the $DATE function.

Examples:

INTERRUPT COUNT

In the following example, a SELECT statement retrieves all data occurrences for the EMPLOYEE record:

select * from employee

OLQ 098006 00  57 whole lines and 0 partial line in report.
OLQ 098007 00  57 records read.   57 records selected.

The following SET INTERRUPT COUNT command reduces the number of records read before a retrieval interruption occurs:

set interrupt count = 25

When another SELECT statement is issued for the EMPLOYEE record, CA OLQ retrieves only 25 record occurrences:

select * from employee

SET INTERRUPT COUNT 25
OLQ 092010 00  The interrupt count has been modified.
SELECT * FROM EMPLOYEE
OLQ 098006 00 25 whole lines and 0 partial lines in report.
OLQ 098007 00 25 records read.   25 records selected.
OLQ 098008 00 38 of 98 primary record pages read.
OLQ 098009 00 Continue (yes/no)?

SEPARATOR CHARACTER

In the following example, the SET SEPARATOR CHARACTER command identifies the percent sign (%) as the separator character:

set separator character = '%'

OLQ 092014 00  The SEPARATOR CHARACTER has been modified.

After the SET SEPARATOR CHARACTER command has been issued, the designated separator character is used to concatenate two CA OLQ commands:

select office-code-0450,office-street-0450 from office %display OFFICE REPORT mm/dd/yy OFFICE-CODE-0450 OFFICE-STREET-0450 002 567 BOYLSTON ST 001 20 W BLOOMFIELD ST 008 910 E NORTHSOUTH AVE 005 7690 NEAR SIGHT AVE 012 734 MASS AVE END OF REPORT

COMMENT CHARACTER :p In the following example, the SET COMMENT CHARACTER command identifies the pound sign (#) as the comment character:

set comment character = '#'

OLQ 092015 00  The COMMENT/TERMINATOR CHARACTER has been modified.

The established comment character is used to enter remark text after a SELECT statement is issued:

select * from employee where emp-last-name like '%ing'#retrieves employees whose last names end in 'ing' OLQ 104009 04 DISPLAY RIGHT to see more report columns EMPLOYEE REPORT 09/25/99 EMP-ID-0415 EMP-FIRST-NAME-0415 EMP-LAST-NAME-0415 EMP-STREET-0415 106 DORIS KING 716 MORRIS ST END OF REPORT

DEFAULT DICTNAME

In the following example, the SET DEFAULT DICTNAME command identifies DOCANWK as the default dictionary name:

set default dictname = docanwk

OLQ 092018 00  THE DEFAULT DICTNAME VALUE HAS BEEN
                MODIFIED.

When the following HELP command is issued, CA OLQ lists all subschemas that exist within the designated default dictionary:

help subschemas

    AVAILABLE SUBSCHEMAS     PAGE 1.1
                             LINE 1
    (SCHEMA)     (SUBSCHEMA)

 DICTIONARY NAME  DOCANWK
 DICTIONARY NODE  *DEFAULT*

 EMPSCHM(2)       EMPSS01
 EMPSCHM(100)     EMPSS01
                  EMPSS09
 TEST(100)        SUBTEST

SET FUNCTION

In the following example, a SHOW statement has been assigned to PF8:

set function 8 'show report'

When [PF8] is pressed in command mode, CA OLQ displays the description of the current report.