| Home News Version 1 Tech Support Pubs S2K Site Map |
CONTROL : DEFINE : QUEST : (or ACCESS :)
USER, DEMO: DBN IS EMPLOYEE: (automatically calls QUEST) . . (QUEST commands) . CONTROL: (calls CONTROL) . . (CONTROL commands) . QUEST: (calls QUEST) . . (QUEST commands) . EXIT: (closes database and ends session)
Some commands automatically call a specific processor after execution: DATA BASE NAME IS calls QUEST, RESTORE calls QUEST, NEW DATA BASE IS calls DEFINE, MAP calls QUEST, and GENERATE calls QUEST.
[LOCAL] COMMAND FILE IS |INPUT :
|fileref
COMMAND FILE IS MYCOM: LOCAL COMMAND FILE IS COM1:
The Command File is set to INPUT (which is your terminal or some other input device) at the beginning of each session. You can let SYSTEM 2000 allocate the default file (S2KCOMD) dynamically instead of specifying it in a CLIST. An S2KCOMD DD statement must be included in batch JCL.
[LOCAL] DATA FILE IS |INPUT :
|fileref
DATA FILE IS MYDATA: LOCAL DATA FILE IS DATA1:
The Data File is set to INPUT (which is your terminal or some other input device) at the beginning of each session. You can let SYSTEM 2000 allocate the default file (S2KCOMD) dynamically instead of specifying it in a CLIST. An S2KCOMD DD statement must be included in batch JCL.
DELIMITER IS delimiter :
DELIMITER IS $: . . . PRINT ENTRY WHERE C303 EQ $CHURCH AND SCHOOL$: . . . DITTO WHERE C303 GT $SCHOOL/UNIVERSITY$:
The default is the slash; it is set at the beginning of each session.
ECHO |ON :
|OFF
|delimiter string delimiter
ECHO ON:(echoes commands and results)
ECHO OFF:(echoes results only)
ECHO/MAP:COMMAND FILE IS INPUT:/:(writes MAP:COMMAND FILE IS INPUT: on the Report File)
ECHO/THIS IS A COMMENT/:(writes THIS IS A COMMENT on the Report File)
The default for a batch job is ECHO ON. The default for an interactive session is ECHO OFF. The defaults are set at the beginning of each session.
ENTRY TERMINATOR IS word :
ENTRY TERMINATOR IS FINI: . . . IT C120*1*1*1 EQ 121*06/30/91*FINI* WH C1 EXISTS:
The default entry terminator word is END.
EXIT :
EXIT:
Issue EXIT as the last command in a session.
IF expression THEN commands ...
[ELSE commands ...]
ENDIF :
|condition |NOT expression |(expression) |expression [AND expression] |expression [OR expression]
|COMPLETE |WARNING [OCCURRED] |ERROR [OCCURRED] |MESSAGE [NUMBER] binary-operator message |MESSAGE [NUMBER] ternary-operator message * message |[SELECTED] RECORDS binary-operator integer |[SELECTED] RECORDS ternary-operator integer * integer |DATA BASE CYCLE binary-operator integer |DATA BASE CYCLE ternary-operator integer * integer |PASSWORD binary-operator password |PASSWORD ternary-operator password * password |MASTER PASSWORD
IF MSG = 502 THEN RESTORE MYDATA FROM SAS1234:
ENDIF:
IF W AND MSG EQ 81 THEN ...
IF COMPLETE THEN ...
IF WARNING OCCURRED THEN ...
IF E THEN ...
IF MESSAGE NUMBER EQ 507 THEN ...
IF MSG SPANS 300* 310 THEN ...
IF MSG > 799 THEN ...
IF SELECTED RECORDS =< 100 THEN ...
IF RECS EQ 4 THEN ...
IF MPW THEN ...
IF PASSWORD = ABC THEN ...
IF DB CYCLE GT 375 THEN ...
Abbreviations:
COMPLETE = C
DATA BASE = DB
ERROR = E
MASTER PASSWORD = MPW
MESSAGE = MSG
PASSWORD = PW
RECORDS = RECS
WARNING = W
Operator Symbol
EQ =
GE >= or => or ^< or !<
GT >
LE <= or =< or ^> or !>
LT <
NE ^= or !=
AND &
OR |
NOT ^ or !
Without symbols, the software reads a blank on either side of an
operator to separate it from other syntactic units. However, with
symbols, blanks are not required for separation. Any blanks
encountered following a symbol are considered part of the value.
delimiter comment delimiter
1*EMPLOYEE NUMBER (INTEGER 9999): &MUST BE FOUR DIGITS& PRINT C1, C5: . . . $NEXT COMMAND COMMENTED OUT FOR TEST RUN$ $MESSAGE FILE IS ABCCMT:$
ECHO ON must be in effect to write comments to the Message File.
LOOKUP [IS] |OFF :
|ON
LOOKUP IS ON: LOOKUP IS OFF:
ON activates processor lookup. OFF (the default) disables processor lookup.
[LOCAL] MESSAGE FILE IS |OUTPUT :
|fileref
MESSAGE FILE IS MYMSG: LOCAL MESSAGE FILE IS S2KMSG:
The Message File is set to OUTPUT (which is your terminal or some other output device) at the beginning of each session. You can let SYSTEM 2000 allocate the default file (S2KMSG) dynamically instead of specifying it in the JCL or CLIST.
PROMPT [IS] |DASH :
|PROCESSOR
|OFF
--- USER, DEMO: --- DBN IS EMPLOYEE: --- PROMPT IS PROCESSOR: QUEST> LIST C1, C2, C3, C4 WHERE C4 GT 01/01/1988: (command output) QUEST> PROMPT IS OFF: DESCRIBE: (command output) PROMPT IS ON: ---
Abbreviations and Synonyms:
DASH = DASHES, DASHS, ON, or - PROCESSOR = PROC
[LOCAL] REPORT FILE IS |OUTPUT :
|fileref
REPORT FILE IS MYREPORT: LOCAL REPORT FILE IS RPTOUT:
The Report File is set to OUTPUT (which is your terminal or some other output device) at the beginning of each session. You can let SYSTEM 2000 allocate the default file (S2KMSG) dynamically instead of specifying it in the JCL or CLIST.
SEPARATOR IS symbol :
SEPARATOR IS $: . . . REMOVE TREE ENTRY $ 4: PRINT ENTRY WHERE C1 SPANS 1100 $ 1251:
The default is the asterisk.
SHOW SYSTEM VARIABLES :
SHOW SYS VARS:
Abbreviations:
SYSTEM = SYS
VARIABLES = VARS
TIMING |OFF :
|ON
TIMING ON: TIMING OFF:
At the beginning of each session, timing is set to OFF.