In this section: |
This section presents a summary of MODIFY command syntax. The syntax of each statement is shown as part of a MODIFY request. The rest of the summary shows:
The following is the syntax of MODIFY requests:
MODIFY FILE filename [ECHO|TRACE] TYPE [ON ddname] [AT START|AT END] "text" COMPUTE field/format=; ****** transaction subcommand ******** VALIDATE field=expression; ON INVALID {GOTO ... |PERFORM ... |TYPE [ON ddname]} "text" COMPUTE field/format = expression;
MATCH {* [KEYS] [SEG.n]|[WITH-UNIQUES] keyfield(s) [field ... field]} ON MATCH action ON MATCH action . . ON NOMATCH action ON NOMATCH action . . ON MATCH/NOMATCH action REPEAT [*|number] [TIMES] [MAX maximum] [NOHOLD] statements HOLD [SEG.]field [field ... field] ENDREPEAT ACTIVATE [RETAIN|MOVE] [SEG.]field ... field DEACTIVATE {[RETAIN] [SEG.] field ... field |[RETAIN] ALL|COMPUTES|INVALID} CASE casename GOTO {TOP|ENDCASE|ENDREPEAT|casename|variable|EXIT} PERFORM {TOP|ENDCASE|ENDREPEAT|casename|variable|EXIT} IF expression [THEN] {GOTO|PERFORM} {TOP|ENDCASE|ENDREPEAT|casename|variable|EXIT} [ELSE {GOTO|PERFORM} {TOP|ENDCASE|ENDREPEAT|casename|variable|EXIT}] HOLD [SEG.]field [field ... field] GETHOLD NEXT field ON NEXT action ON NEXT action . . ON NONEXT action ON NONEXT action . . ENDCASE COMMIT ROLLBACK LOG {TRANS|ACCEPTS|DUPL|NOMATCH|INVALID|FORMAT} [ON ddname] [MSG {ON|OFF}] CHECK {ON|OFF|n} START n STOP n DATA {ON ddname|VIA progname} [END]
The following is the syntax for three transaction statements: FIXFORM, FREEFORM, and PROMPT. For CRTFORM syntax, see Designing Screens With FIDEL.
The syntax of the FIXFORM statement:
FIXFORM {FROM master| [ON ddname] field/[C]format field/[C]format ... [Xn] [X-n]}
The syntax of the FREEFORM statement:
FREEFORM [ON ddname] field field field ...
The syntax of the PROMPT statement:
PROMPT {*|field[.text.] field[,text,] . . .}
This section lists the actions that can be taken by MATCH and NEXT statements. They are placed in ON MATCH, ON NOMATCH, ON NEXT, and ON NONEXT phrases. These actions are:
ACTIVATE
COMMIT
COMPUTE
CONTINUE (ON MATCH and ON NEXT only)
CONTINUE TO (ON MATCH and ON NEXT only)
CRTFORM
DEACTIVATE
DELETE (ON MATCH and ON NEXT only)
FIXFORM
FREEFORM
GOTO
HOLD
IF
INCLUDE
PERFORM
PROMPT
REJECT
REPEAT (ON MATCH and ON NEXT only)
ROLLBACK
TED (ON MATCH and ON NOMATCH ON NEXT and ON NONEXT
TYPE
UPDATE (ON MATCH and ON NEXT only)
VALIDATE
The following actions can be used in ON MATCH/NOMATCH phrases:
ACTIVATE COMMIT CRTFORM DEACTIVATE GOTO HOLD IF PERFORM PROMPT ROLLBACK TED
The following actions can be used in ON INVALID phrases:
GOTO PERFORM TYPE
|
Information Builders |