Page History
...
Code Block |
---|
READ.RECORD (record read logic here) RETURN CREATE.FILE: RENAME.FILE: DELETE.FILE: ("do nothing" logic here) RETURN |
Using CASE Statements in an MFS Dispatch Routine
A second method to dispatch within the MFS is to use a CASE block. In this method, the value of CODE is tested in a series of CASE statements to determine the logic to be executed for the operation. For example, this code fragment illustrates a portion of the CASE logic:
Code Block |
---|
BEGIN CASE
CASE CODE = 1
(read logic here)
CASE CODE = 2
(read-only logic here)
CASE CODE = 3
(write logic here)
(etc.)
END CASE |