The following text describes each group of WFL statements and outlines the general functions of each group and the statements within each group.
Null
Takes no action. This statement is sometimes useful in task control or nested flow‑of‑control statements. The null statement is the only statement in this group.
Assignment
Assigns values to declared variables. The assignment statement is the only statement in this group.
Compound
Groups other statements together so they can be included in the flow-of-control statements. The compound statement is the only statement in this group.
Flow-of-Control
Controls the order in which statements are executed, or causes other statements to be executed only if the specified conditions are met. Flow-of-control statements include:
Subroutine Control
Invokes a subroutine, or causes it to be exited early. Subroutine control statements include:
Task Control
Affects task execution; for example, by discontinuing, delaying, or rerunning a task. Task control statements include:
Task Initiation
Initiates a task, which is a process that runs in its own stack. Most task initiation statements enable the use of file equations and task attribute assignments to control the execution of the task. Refer to Task Initiation for details. Task initiation statements include:
Task Security
Affects the security privileges of the job. A related statement is the SECURITY statement, which sets the security properties of files. Task security statements include:
Communication
Provides the user or the operator with information about the job. Communication statements include:
File Handling
Opens or closes files. There are several ways of closing files, each of which leaves the file in a different state. Refer to File Handling for more information. File handling statements include:
File Management
Changes, removes, or prints disk files, and creates permanent directories. Changes file titles or security. The MODIFY statement permanently adds to or changes the attributes in an object code file. File management statements include:
Note: | The ADD, COPY, MOVE, RESTORE, and RESTOREADD statements are related to the file management statements, but are considered task initiation statements because they initiate a task when copying files. |
Cataloging
Affects the cataloging of information about files, disk families, or tapes. Cataloging statements include: