Controls the overall width of pages output by the LIST command.
Syntax
SET PAGEWIDTH num
Parameters
num | Num specifies, in characters, the width of an output page. Num can be an integer constant (e.g., 15, 200). a variable, form field, menu item, or parameter that evaluates to an integer. |
Comments
The PAGEWIDTH option is set to 80 characters by default.
If the data generated by LIST or SELECT exceeds the current PAGEWIDTH, the software assumes that the output device wraps data onto subsequent lines.
Example
set output printer
set pause on
set pagesize 40
set pagewidth 120
list all Employees sorted by Department
Here, the SET PAGEWIDTH command (together with SET PAGESIZE) sets LIST output for printing in the landscape orientation.
See Also
SET HEADINGS
SET PAUSE
Controls the overall length of pages output by the LIST command.
Syntax
SET PAGESIZE num
Parameters
num | Num specifies, in lines, the height of an output page. Num can be: an integer constant (e.g., 15, 200); a variable, form field, menu item, or parameter that evaluates to an integer. |
Comments
The PAGESIZE option is set to 24 lines by default.
The PAGESIZE option should be adjusted to suit the current output device (e.g., 66 lines for a printer, 24 lines for a terminal screen).
Example
set output printer
set pause on
set pagesize 40
set pagewidth 120
list all Employees sorted by Department
Here, the SET PAGESIZE command (together with SET PAGEWIDTH) sets LIST output for printing in the landscape orientation.
See Also
LIST
SET HEADINGS
SET PAGEWIDTH
SET PAUSE
Sets the interval between set-processing progress messages.
Syntax
SET MEMBERINTERVAL num
Parameters
num | Num can be: an integer constant (e.g., 15, 200) a variable, form field, menu item, or parameter that evaluates to an integer. |
Comments
The MEMBERINTERVAL option is set to 1 by default.
The MEMBERINTERVAL option determines how many records are to be processed between messages tracking the progress of set-processing commands. Set-processing progress messages are turned on or off with the SET MEMBERCOUNT command.
Example
> set membercount on
> set member interval 10
> find Employees
200 processed.
200 selected.
>
The number of records processed and selected are displayed in increments of ten until all records are processed.
See Also
$MemberCount
SET ERRORS
SET MEMBERCOUNT
Halts the execution of an application program if an error occurs.
Syntax
SET STOP ERRORS ON|OFF
Comments
The STOP ERRORS option is OFF by default.
When STOP ERRORS is switched ON, execution is halted (by the HALT utility) when an error occurs. To resume execution after the HALT, press Enter at the HALT prompt (>>).
Compiled application programs are not affected by SET STOP ERRORS.
The ET STOP ERRORS command is not affected by the SET RESET and SET RESTORE commands.
Example
> set stop errors on
:
> list all test
procedure test (p_OwnerName)
report from Fields where OwnerName = p_OwnerName % Spelling error
… body of report …
endreport
endprocedure
> test
*** Error *** …
>>
The HALT command is executed when the execution of test results in an error. (The name of the EntitySet Fields is misspelled in the body of the procedure.)
See Also
$ErrCode
SET SELECTIVITY
SET SINGLESTEP
SET EXECUTEMODE
Controls the mode of software execution.
Syntax
SET EXECUTEMODE SQLMODE | ZIMMODE | SERVERMODE
Comments
The EXECUTEMODE option is set to SQLMODE by default.
The SQLMODE option executes SQL database code.
The SERVERMODE option executes integrated Zim server code.
The ZIMMODE option executes standard Zim code. In ZIMMODE, EntType, RelType, and so on are ignored. In this way, it can be used for testing without an effective connection.
When EXECUTEMODE is SQLMODE, Zim executes integrated server requests on the target Zim server if possible. Otherwise, it sends SQL requests to the server. When EXECUTEMODE is SQLMODE, Zim executes code against the target SQL database. By setting EXECUTEMODE to ZIMMODE, Zim executes the code as standard Zim code.
Example
To execute Zim Client-server code as standard Zim code, enter
> set executemode zimmode
See Also
COMPILE
SET COMPILEMODE
SET SQLCOMPILE
UNCOMPILE
Controls consistency checking of result sets.
Syntax
SET CHECKSETS ON|OFF
Comments
The CHECKSETS option is set ON by default.
When CHECKSETS is ON, the software checks certain aspects of the component structure of result sets for consistency. This consistency checking is performed when a command creates a result set (using the -> (Result set) subcommand), if the set has already been defined as a result set, either in a previous set-producing command, or as a NamedSet object in the Object Dictionary. Normally, you should always leave CHECKSETS set ON.
The SET CHECKSETS command is not affected by the SET RESET and SET RESTORE commands.
Example
find Employees -> Set1
find Departments -> Set1
With CHECKSETS set ON, the second command in the preceding sequence produces an error (the component structure of the set is not consistent from one command to the next).
set checksets off
find Employees -> Set1
find Departments -> Set1
By setting CHECKSETS OFF, the command sequence produces no error.
See Also
CREATE
SET SQLCOMPILE
Controls the compilation of generated SQL statements within the SQL database.
Syntax
SET SQLCOMPILE ON|OFF
Comments
The SQLCOMPILE option is OFF by default. The software stores SQL statements generated in the compiled code and executes them dynamically at run time.
When SQLCOMPILE is switched ON, the software attempts to compile all generated SQL statements at the SQL database server. Before attempting to compile with SQL compiling switched on, you must be connected to the SQL database.
Changes to this setting provide control over how the SQL statements are to be executed. The query optimizers for certain SQL databases perform differently when processing SQL statements dynamically.
Example
set sqlcompile off
list all Customers format CC LastName
set sqlcompile on
Forces the statement list all Customers format CC LastName to be executed dynamically at the server within a compiled application program.
See Also
COMPILE
SET COMPILEMODE
SET EXECUTEMODE
SET SQLTRACE
UNCOMPILE
Enables or suppresses the display of information messages.
Syntax
SET INFORMATION ON|OFF
Comments
The INFORMATION option is set ON by default.
When INFORMATION is ON, information messages are displayed. Setting INFORMATION to OFF suppresses the display of such messages. Information messages are of the form:
nnn selected | after a FIND command |
nnn added | after an ADD command |
nnn changed | after a CHANGE command |
nnn deleted | after a DELETE command |
All types of messages can be simultaneously turned on or off with a SET MESSAGES command.
The SET INFORMATION command has no effect on the logging of messages in the “error trace” file. Message logging is governed by the configuration option error trace.
Example
set messages on
set information off
The preceding commands set error and warning messages on, but information messages off.
See Also
SET ERRORS
SET WARNINGS
Records tracing information.
Syntax
SET TRACE OUTPUT docname [APPEND]
Parameters
docname | The name of an application document. All subsequent trace output is sent to the specified document. |
APPEND | Indicates that subsequent trace output is to be appended to the existing contents of docname. |
Comments
Normally, information generated by the commands SET COMMANDTIMING, SET FLOW, SET LEXTRACE, SET STRATEGY, SET TRACE, and SET TRANSACTION FLOW is displayed on the screen. The SET TRACE OUTPUT command enables you to redirect the output to docname.
Example
set trace output RecordTrace
Redirects tracing information to an application document called RecordTrace.
set trace output terminal
Tracing information is displayed on the terminal screen.
See Also
SET FLOW
SET LEXTRACE
SET STRATEGY
SET TRACE
SET TRANSACTION FLOW
Specifies the characters to be displayed for $Null values.
Syntax
SET NULLVALUE constant
Parameters
constant | A character string, or an expression that evaluates to a character string. |
Comments
The NULLVALUE option is set to a space character by default.
When a value to be output is $Null, the specified constant is displayed.
Example
To specify that the character constant NA is to be displayed for $Null expressions, use
> set nullvalue “NA”
As a result, a LIST command looks like this:
> list 3 Employees
LastName FirstName Salary
Smith John 25000
Jones NA 35000
Johnson Janet NA
See Also
$Null
Expressions and the $Null Property