Work Flow Language (WFL) Programming Reference Manual

ClearPath MCP 20.0

May 2021

8600 1047-518

Warranty Disclaimer

NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS DOCUMENT. Any product or related information described herein is only furnished pursuant and subject to the terms and conditions of a duly executed agreement to purchase or lease equipment or to license software. The only warranties made by Unisys, if any, with respect to the products described in this document are set forth in such agreement. Unisys cannot accept any financial or other responsibility that may be the result of your use of the information in this document or software material, including direct, special, or consequential damages.

You should be very careful to ensure that the use of this information and/or software material complies with the laws, rules, and regulations of the jurisdictions with respect to which it is used.

The information contained herein is subject to change without notice. Revisions may be issued to advise of such changes and/or additions.

Notice to U.S. Government End Users: This software and any accompanying documentation are commercial items which have been developed entirely at private expense. They are delivered and licensed as commercial computer software and commercial computer software documentation within the meaning of the applicable acquisition regulations. Use, reproduction, or disclosure by the Government is subject to the terms of Unisys’ standard commercial license for the products, and where applicable, the restricted/limited rights provisions of the contract data rights clauses.

Unisys and other Unisys product and service names mentioned herein, as well as their respective logos, are trademarks or registered trademarks of Unisys Corporation.
All other trademarks referenced herein are the property of their respective owners.

Table of Contents

WFL Capabilities
Documentation Updates
What's New?
Overview of WFL
Task Initiation
Other Task Initiation Statements
Task Specifications
Data Specifications
Flow of Control Statements
Processing Data
Subroutine Control
Task Control
File Handling
File Management
Communication
Job Format
Job Initiation
Overview
Sources for Job Initiation
START and WFL Commands from CANDE Sessions
START Statements from Running WFL Jobs
Operator Display Terminals (ODTs)
Menu-Assisted Resource Control (MARC)
Distributed Systems Services
User Programs in Other Languages
Magnetic Tapes
Job Continuation After a Task Fails
Job Restart After a Halt/Load
ON RESTART Statement
Dummy Files
Job Structure
Overview
Job Syntax
Job Structure
Job Contents
Job Format
AT Host Name
Job Title
Job Parameter List
Job Disposition
Job Attribute List
Resource-Limiting Attributes
CLASS Specification
FETCH Specification
STARTTIME Specification
Declaration List
Statement List
WFL Job Example
Declarations
Overview
Declaration Syntax
Scope of Declarations
Variable Initialization
Constant Identifiers
Boolean Variables
Integer Variables
Real Variables
String Variables
File Variables
Task Variables
Subroutines
Subroutine Parameters
Global Data Specifications
Task Initiation
Overview
Task Initiation Statements
Task Equation
Task Attributes
Task Attribute Assignment
Complex Task Attribute Assignments
ACCESSCODE Assignment
CORE Assignment
CURRENTDIRECTORY Assignment
DATAPATH Assignment
EXECUTEPATH Assignment
FAMILY Assignment
OPTION Assignment
PRINTDEFAULTS Assignment
RESOURCE Assignment
SUPPRESSWARNING Assignment
USERCODE Assignment
Using Task Variables
Assigning Task Attributes
Reusing Task Variables
Interrogating Task Attributes
Interrogating Task Status
File Attribute Inquiry
Interrogating Complex Task Attributes
MYJOB and MYSELF Predeclared Task Variables
File Equations
Causing the Task to Use a Different Input or Output File
Changing the Attributes of Files Used by the Task
Causing the Task to Read from a Data Specification
How the Task Can Override WFL File Equations
Resolving Repeated File Equations to the Same File
Global File Assignment
Using Remote Files
File Attribute Assignment
Device Kind Assignment
Serial Number Assignment
Using File Attributes
Assigning File Attributes
Interrogating File Attributes
Nonresident Files
Library Equation
Overriding WFL Library Equations
Resolving Repeated Library Equations to the Same Library
Database Equation
Local Data Specifications
Statements
Overview
WFL Statement Groupings
ABORT Statement
ACCESS Statement
ADD Statement
ALTER Statement
Archive Subsystem
ARCHIVE Backup Statement
ARCHIVE Statement Options
ARCHIVE Disk Volume
ARCHIVE Disk Volume Attribute List
ARCHIVE Tape Volume
ARCHIVE Tape Volume Attribute List
ARCHIVE CD Volume
ARCHIVE CD Volume Attribute List
ARCHIVE Task Equation List
ARCHIVE MERGE Statement
ARCHIVE PURGE Statement
ARCHIVE RELEASE Statement
ARCHIVE RESTORE Statement
ARCHIVE ROLLOUT Statement
ARCHIVE VOLUME Statement
Assignment Statements
BIND Statement
CASE Statement
CATALOG Statement
CHANGE Statement
COMPILE or BIND Statement
Naming the Object Code File
Choosing a Compiler
Binding
Object Code File Disposition
Task Variables
Compiler Task Equation List
File, Library, and Database Equations and Task Attributes
Local Data Specifications
Compound Statement
COPY or ADD Statement
Copying Files
Library Maintenance
COPY Options
COPY Request
Copying Files from Tape or CD-ROM
COPY and ADD Statement Examples
COPY File Transfer Services
CREATE LIBMAINTDIR Statement
CRUNCH Statement
DISPLAY Statement
DO Statement
GO Statement
IF Statement
INITIALIZE Statement
INSTRUCTION Statement
LOCK Statement
LOG Statement
MKDIR Statement
MODIFY Statement
MOVE Statement
Null Statement
ON Statement
OPEN Statement
PASSWORD Statement
PB Statement
PRINT Statement
Printing Portions of a File
PROCESS Statement
PURGE Statement
RELEASE Statement
REMOVE Statement
REPLACE Statement
RERUN Statement
RESTORE Statement
Library Maintenance
RESTORE Statement Options
RESTORE Tape and CD-ROM Attributes
RETURN Statement
REWIND Statement
RUN Statement
RUNX Statement
SECURITY Statement
START Statement
START AND WAIT Statement
STOP Statement
Subroutine Invocation Statement
UNWRAP Statement
USER Statement
VOLUME Statement
Tape Volume Security
VOLUME ADD Statement with Tape Security Subsystem
WAIT Statement
WHILE Statement
WRAP Statement
Expressions
Overview
Boolean Expressions
Boolean Primary
Integer Expressions
Integer Primary
Real Expressions
Real Primary
String Expressions
String Primary
Mnemonic Primaries
Constant Expressions
Boolean Constant Expression
Integer Constant Expression
Real Constant Expression
String Constant Expression
Basic Constructs
Overview
Invalid and Valid Characters
Valid Character Elements
Identifiers
Constants
Names
File Names, Titles, and Directories
Using String Primaries
Restrictions on the Use of String Primaries
Passing Parameters to a Task
Copying Multiple Files
WFL Control Options
Overview
CODE Option
ERRORLIMIT Option
INCLUDE Option
LIST Option
LIST1 Option
NEWSEGMENT Option
WARNSUPPRESS Option
XREF Option
XREFFILES Option
Sample WFL Jobs
Overview
Compiling a Program
Initiating Other Jobs
Updating Files
Reserved Words, Predefined Words, and Keywords
Overview
Reserved Words
Predefined Words
Keywords
Understanding Railroad Diagrams
Railroad Diagram Concepts
Paths
Constants and Variables
Constraints
Following the Paths of a Railroad Diagram
Railroad Diagram Examples with Sample Input