WFL Statement Groupings

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:

  • CASE

  • DO

  • GO

  • IF

  • WHILE

Subroutine Control

Invokes a subroutine, or causes it to be exited early. Subroutine control statements include:

  • <subroutine invocation statement>

  • RETURN

Task Control

Affects task execution; for example, by discontinuing, delaying, or rerunning a task. Task control statements include:

  • ABORT

  • INITIALIZE

  • ON

  • RERUN

  • STOP

  • WAIT

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:

  • ADD

  • ARCHIVE DIFFERENTIAL

  • ARCHIVE FULL

  • ARCHIVE INCREMENTAL

  • ARCHIVE MERGE

  • ARCHIVE RESTORE

  • ARCHIVE RESTOREADD

  • ARCHIVE ROLLOUT

  • BIND

  • COMPILE

  • COPY

  • LOG

  • PB

  • PROCESS

  • RESTORE

  • RUN

  • START

  • WRAP

  • UNWRAP

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:

  • ACCESS

  • PASSWORD

  • USER

  • VOLUME

Communication

Provides the user or the operator with information about the job. Communication statements include:

  • INSTRUCTION

  • DISPLAY

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:

  • CRUNCH

  • LOCK

  • OPEN

  • PURGE

  • RELEASE

  • REWIND

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:

  • ALTER

  • ARCHIVE PURGE

  • ARCHIVE RELEASE

  • CHANGE

  • MKDIR

  • MODIFY

  • PRINT

  • REMOVE

  • SECURITY

  • VOLUME

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:

  • CATALOG

  • VOLUME