Programs written for another MultiValue database often lean on one small behavior
that SD does differently by default: a read that leaves the variable alone when the
record is missing, a locate that works as another product's does. SD keeps some of
these behind a word you turn on yourself (a divide by zero that warns, a query that
ignores case and a few others are not among them: SD always stops, and sorts by case). This page
says where the words are set and which rules they follow; the two pages after it
list every word SD has, one line each.
| 26a | Option words | the words of the option command |
| 26b | Mode words | the names $mode accepts, and the lines of a $basic.options record |
The rules the words follow#
Everything is off until you turn it on. A new session has every option off and a new program has every mode off. SD's own behavior is the default, and a word only moves a program or a session away from it, on purpose.
One word changes one thing. Each option and mode is a single, small difference:
uv.locate makes locate work
as UniVerse's does, and so on. There is no switch that makes SD behave like D3, mvBase,
UniData, jBASE or any other product as a whole. option d3, option mvbase,
$mode d3 and $mode mvbase are refused, and so is option pick, which switched
nine words on together and does not exist. SD has no shortcut that
sets several words together: option sdbasic.warnings is gone with the three words it set.
A word SD does not have is refused, not skipped. option says Option name not
recognized and $mode stops the compile with Unrecognized mode name. A login
paragraph or a program that names a word from another product has to be edited. The
words of other products that SD does not accept are in the last section of this page.
A word changes how your session or your program behaves, nothing more. It does
not give the account the shell, os.execute, ssh or the API. Those are the
administrator's switches (see Operating system access),
and no option or mode sets them.
Where a word is set#
For one session: the option command.
option lists every option and whether it is on
option name {on|off|display} on is the default
option all off turns every option off
option lptr {n} prints the list on print unit n (unit 0 if left out)
Names are not case sensitive. A setting belongs to the session that made it, and a
phantom does not receive it: a phantom starts with every option off. To have an option
on whenever you sign in, put the command in the account's login paragraph.
For one program: the $mode directive.
$mode name {, name ...}
$mode -name
$mode default
-name turns a mode off again and $mode default turns every mode off. A mode is
built into the object code when the program is compiled, so changing it means
compiling again. The form is described in SD Basic - Program Structure.
For every program in a file: the $basic.options record. A record of that name
in the file that holds the source (or, failing that, in the VOC), whose first line is
x, gives each program compiled from that file a set of defaults: modes, a catalog
action, tokens, an automatic $include. Its lines are listed in
26b.
Where to start#
| if your programs or queries... | try |
|---|---|
| compare text without regard to case in a selection test | the no.case keyword after its operator (a sort is by case, and there is no option to change that) |
use locate as UniVerse does |
$mode uv.locate |
| need every program of a file compiled the same way | a $basic.options record |
Words other products have that SD does not accept#
SD refuses each of these.
| from another product | in SD |
|---|---|
option d3, option mvbase |
not provided; see the rules above |
option qmbasic.warnings, option sdbasic.warnings, unass.warning, div.zero.warning, non.numeric.warning |
removed: an unassigned variable, a divide by zero and a non-numeric value are always errors; test the value first |
option query.sort.no.case, clear.select, inherit and the keep.select statement |
removed: a sort is by case, a select list left active is left for the next command (clear.select clears it), and a phantom starts with every option off |
option x hex.string |
not provided; set the options one by one |
option no.echo.data |
a compiler mode: $mode no.echo.data |
option create.file.no.case, option create.dict.no.case |
not provided; every file create.file makes is case insensitive (see Lower case) |
option keep.filename.case |
not provided: a new file is always named in lower case (see Lower case) |
option pick, assoc.unassoc.mv, pick.breakpoint, pick.breakpoint.u, pick.explode, pick.grand.total, pick.implied.eq, pick.null, pick.wildcard, qualified.display, with.implies.or, query.no.case, query.priority.and |
removed, with the Pick style of query they switched on: write with city = "Reno", put the text after a break.on field the way SD does, and use the like operator for wildcards, or and brackets for the order of tests, and no.case after an operator for case |
option ampm.upcase, crdb.upcase, no.date.wrapping, space.mct, lock.beep, ed.no.query.fd, create.file.upcase, select.keep.case, debug.rebind.keys, proc.a |
removed: the output is as the default always was (am, cr, db), a date such as 31 February rolls into the next month, a lock wait is silent, and fd in ed asks before it deletes |
option inherit.ownership |
not in SD Core Solo for Linux: every file of the account is yours already |
option local.cat.relative, option no.sel.when.filter, option silent.tandem |
not provided |
option pick.proc, option proc.if.no.case |
not provided: PROC is gone (see Not in SD Core Solo for Linux) |
$mode d3, $mode mvbase |
not provided |
$mode nocase.strings |
a directive of its own: $nocase.strings, or a nocase.strings line in $basic.options |
$mode numeric.boolean, scandup, sselectv, symtab0 |
not provided |
$mode pick.errmsg |
not provided |