Welcome to the HCL Workload Automation for Z documentation, where you can find information about how to install, maintain, and use the product.
Use the following keywords with the OPTIONS statement.
OPTIONS
Program to allocate storage (default is EQQSTOR).
For the latest information about a Dynamic Workload Console fix pack, see the appropriate Readme File.
You can plan when and how your workload runs and manage it as part of a plan.
The Workload Automation Programming Language is a programming language that provides you with easy access to the features of the HCL Workload Automation for Z Program Interface (PIF).
You can run Workload Automation Programming Language as a batch job by using the compiled REXX exec, as a load module, online within a TSO session, as a started task workstation, or as a console command. A user program must run as an authorized program.
The following sections describe the Workload Automation Programming Language commands that control the behavior and logic of the program. Use the commands to set options, return codes, determine an output, modify the flow, change variables, or make decisions.
Some commands in Workload Automation Programming Language operate in REXX mode. These commands are CONSOLE, DISPLAY, DO, IF, LOG, SETVAR when the equal sign (=) is used, and WRITE.
CONSOLE
DISPLAY
DO
IF
LOG
SETVAR
The Data Access commands supported by Workload Automation Programming Language are low level commands based on the HCL Workload Automation for Z programming interface (PIF).
Use the Current Plan Operation commands to perform specific functions against operations in the current plan, using a common set of keywords to identify the operation you want.
Use the Current Plan Occurrence commands to perform specific functions against all operations within a single occurrence in the current plan, using a common set of keywords to identify the occurrence.
The Function Based commands combine various low level PIF commands. Use the Function Based commands to perform specific scheduling or operational functions.
Some TSO commands are specific to HCL Workload Automation for Z; you can run them natively in TSO, through program EQQEVPGM, and through Workload Automation Programming Language.
The batch loader function of Workload Automation Programming Language uses a set of statements to define or modify objects within the HCL Workload Automation for Z database.
Workload Automation Programming Language supports variable substitution within its control statements. In this way, the actual values required for each command run are provided (for example, the occurrence name or Input Arrival date).
With Workload Automation Programming Language you can use different methods to perform the same action. Each method has different implications for ease of use and performance, the balance of which might change depending on the volume of records to which it is being directed.
This keyword has been deprecated, use OPTIONS DBMODE instead.
OPTIONS DBMODE
Determines whether AD/OI consistency checks are to be made every time an application is deleted or modified.
Specifies the application name prefix to be used in commands that generate dynamic applications (ADDJOB). The default is ADHOC#.
ADDJOB
Specifies the application name suffix to be used in commands that generate dynamic applications (ADDJOB). The default is blank.
How to set the Valid From date in generated Batch Loader.
Application version support
The output style to be sent to the Batch Loader output file.
Used for the commands that need to know a calendar name, when none is supplied in the keywords for that command.
Within Workload Automation Programming Language, the at sign (@) is used to designate an object variable.
Within Workload Automation Programming Language, the exclamation mark (!) is used as the default variable prefix.
Within Workload Automation Programming Language, the number sign (#) is used to designate the count of the number of a specified segment in object variables and a count within VARSET ENVATTR.
VARSET ENVATTR
Within Workload Automation Programming Language, the at sign (@) is used to build an email address from any unqualified addresses in the SENDMAIL command by using the character in combination with the OPTIONS MAILSERV setting.
SENDMAIL
OPTIONS MAILSERV
Whether to check the existence for workstations with applications, when processing batch loader.
Number of output records to hold in storage before committing to disk (default is 1000).
The COMPSUCC keyword of the ADDJOB and JBSTART commands determines what action to take when a successor is identified as already complete.
COMPSUCC
JBSTART
Specifies a list of message numbers for IEExxxI messages to be considered as true informational messages and not cause a return code of 8.
IEExxxI
Sets the MCS console name to be activated to run a CONSOLE command.
Sets how long the CONSOLE command waits for a response message.
Specifies a list of message numbers for IEExxxI messages to be considered as warning messages to cause a return code of 4.
What to do in event of contention within HCL Workload Automation for Z.
Automatic resolution of external dependencies when inserting new current plan occurrences.
PIF commands that update elements in the current plan, such as MODIFY and INSERT, by default will end with RC=8 if they fail. This does not prevent Workload Automation Programming Language from continuing processing, and might result in incomplete updates being committed by a subsequent EXECUTE statement. The CPFAIL option prevents this from happening.
MODIFY
INSERT,
EXECUTE
CPFAIL
When using the equal sign (=) to represent a DATE or TIME within Workload Automation Programming Language, by default the date and time when Workload Automation Programming Language started is used.
File Destination (such as DD Name) to override value specified on the OUTPUT DATA keyword.
OUTPUT DATA
Determines the operating mode for Batch Loader.
When a segment is retrieved from HCL Workload Automation for Z, it can be automatically decoded into its separate fields. The DECODE keyword decides how much of each segment to decode.
DECODE
Specifies a number of seconds to pause after issuing any update command to the HCL Workload Automation for Z PIF (default 0).
PIF commands to consider as update commands to perform a delay after (default DELETE EXECUTE INSERT REPLACE).
DELETE
INSERT
REPLACE
Sets the default value for the DELETE keyword of the LIST statement.
LIST
File Destination where to write deferred DELETE statements.
Defines the default delimiter for ending instream data within Batch Loader output. The default is -END-OF-INPUT-TEXT-.
-END-OF-INPUT-TEXT-
The OPTIONS DROP keyword provides mechanisms that circumvent occurrence inconsistencies.
OPTIONS DROP
Controls if any duplicates automatically listed by OPTIONS SELECT or OPTIONS EXPAND are selected for processing.
OPTIONS SELECT
OPTIONS EXPAND
States the unit to specify durations.
The OPTIONS DYNLOG keyword causes a dynamic log file to be created to save a copy of the Workload Automation Programming Language log.
OPTIONS DYNLOG
During parallel testing, if the OPTIONS FAIL(N) or SPOOF keywords are used, you cannot identify the problems with the HCL Workload Automation for Z part of the processing. This keyword prompts Workload Automation Programming Language to create a copy of the log in a uniquely named data set, so that the logs can be collated and scanned for errors at points in the testing cycle.
OPTIONS FAIL(N)
SPOOF
Automatically performs an EXECUTE before termination.
Whether to generate LIST statements for any database elements that might be required by a SELECTed database element.
SELECT
In normal use, Workload Automation Programming Language is expected to fail with non-zero return codes in the event of errors being found. However, during parallel testing when migrating from an alternative workload automation product to HCL Workload Automation for Z, it is normal to send commands to HCL Workload Automation for Z first, then to the alternative product that is controlling the workload. This enables HCL Workload Automation for Z to be in the correct state to track events from the alternative product.
When you want to retrieve only computer and printer operations, FASTPATH makes the search for operations faster.
FASTPATH
The Field Separator character is used to separate fields in the DATA output. You can specify either a single character reference, for example a comma, as in FIELDSEP(,), or a hex value as a two byte notation or two bytes suffixed with x, for example FIELDSEP(00) or FIELDSEP(00x).
DATA
FIELDSEP(,)
FIELDSEP(00)
FIELDSEP(00x)
DD name from which to read File Specification.
Sets the default logical first operation within an application for any process that needs a logical start point.
To calculate dates using workdays as the offset, a calendar might have been defined with no workdays, causing calculations to loop infinitely. Use the FREEMAX keyword to set a limit of consecutive free days to process before the command fails.
FREEMAX
Used for any commands that need to know a global table name, when none is specified in the keywords for the command.
Highest acceptable return code.
The @CMD function is used to check the return code of a previous command. If the command label is not specified, the default command to check is determined by this OPTIONS keyword.
@CMD
The @JCL tag is used to check the return code of a previous JCL step in the current job. If the command label is not specified, the default command to check is determined by this OPTIONS keyword.
@JCL
Sets the default specification of internal dependencies to ignore.
By default, any statements run as a result of INCLUDE statements is listed only when either the MSGLEVEL is 3 or higher, or the statement fails. Use INCLEVEL to specify an alternative message level for listing the contents of the included members.
INCLUDE
MSGLEVEL
3
INCLEVEL
You can name a specific DD statement for Workload Automation Programming Language to read for the main command stream, specify an address for a control block containing the main command stream, or specify INPUT(-OFF-) to prevent Workload Automation Programming Language from attempting to read an INPUT stream from a file, so it reads only from the External Data Queue.
INPUT(-OFF-)
INPUT
Used to set the input library for the JSSTART batch loader command. The default value is EQQJSPDS.
JSSTART
The Label Separator character used to separate field Labels from Values in the DATA output.
Sets the default logical last operation within an application for any process that needs a logical end point.
DO WHILE, DO UNTIL, and DO FOREVER loops might run infinitely. This option restricts the types of loops to a maximum number of iterations, before the process fails.
DO WHILE
DO UNTIL
DO FOREVER
File Destination (such as DD name) to override value specified on the OUTPUT LOADER keyword. Setting a minus sign (-) suppresses LOADER output.
OUTPUT LOADER
Whether to enable the extended Batch Loader locking for the DBMODE UPDATE and DBMODE COPY statements.
DBMODE UPDATE
DBMODE COPY
Automatic resolution of external dependencies when inserting new LTP occurrences.
Used to set the input library for the SENDMAIL command.
Used to set the default FROM value for the SENDMAIL command.
FROM
Used to set the default SERVER value for the SENDMAIL command.
SERVER
Used to set the output DD name for the SENDMAIL command.
This OPTIONS keyword is no longer effective. Original values are accepted for backwards compatibility.
Specifies the list of month names to be used in the DATEADD and DATEFORM functions. By default, the names are in English but you can use OPTIONS MMMM to set the months in a different language.
DATEADD
DATEFORM
OPTIONS MMMM
Determines the level of messages to be issued.
Whether to issue messages with severity O to Operator Console.
Tells Workload Automation Programming Language to treat the percent sign (%) and asterisk (*) as masking characters for updating fields within Batch Loader statements.
When using NEW_ prefixes for fields when using Batch Loader in UPDATE or COPY mode, they will result in a new name for the object. This new name might point to another pre-existing object. By default, the update fails. The OVERWRITE option enables you to modify this behaviour to allow the replacement of the existing object.
NEW_
UPDATE
COPY
OVERWRITE
When a VARDATE, VARSAVE, or VARSET command tries to save a variable to a table that does not exist, an Owner ID must be provided. This keyword provides the value to use for these eventualities.
VARDATE
VARSAVE
VARSET
Program to call HCL Workload Automation for Z PIF (default is EQQYCOM).
Program to use to wait for contention retry (default is EQQRETWM).
After processing all initial command statements on the external data queue and in the INPUT source (usually SYSIN), Workload Automation Programming Language terminates. If you dynamically generate more command statements into the External Data Queue during execution, for example Batch Loader, use this option to have Workload Automation Programming Language processed these extra statements.
Determines the action to take when a period automatically created is about to be created with no intervals.
Sets the report width for output messages in SYSTSPRT (default is 80).
Restricted option. Managed internally by Workload Automation Programming Language, not permitted with Workload Automation Programming Language command stream.
Restricted option. Handled internally by Workload Automation Programming Language, not permitted with Workload Automation Programming Language command stream.
Modifies the unloaded values of the Valid From (ADRVALF) and Valid To (ADRVALT) dates of each run cycle. This affects the value in any generated Data or Batch Loader output. It does not affect the database, unless you process the generated Batch Loader output.
ADRVALF
ADRVALT
Whether to send HCL Workload Automation for Z data information to files specified in the OUTPUT DATA keyword.
Whether to send Batch Loader information to files specified on the OUTPUT LOADER keyword.
Sets the default value for the SELECT keyword of the LIST statement.
Sets the default behaviour of the SETMAX command.
SETMAX
Sets the default SETUP value for any new VARSET and VARDATE variables when saved into a JCL Variable Table.
SETUP
Defines the message severities to display.
Sets the special message level -1 from the start of Workload Automation Programming Language that prevents all messages except Fatal and Critical from being issued.
Whether to create batch loader keywords for fields with default values.
Whether to display the key information for each record identified by a LIST statement.
Indicates whether support for certain Small Product Enhancements (SPEs) is to be considered. Each SPE is listed in the format spename=Y or spename=N, for example SPE(WLM=Y,SA=N).
spename=Y
spename=N
SPE(WLM=Y,SA=N)
The return code that causes processing to stop.
Whether to strip blanks and leading zeroes from DATA and LOADER output.
LOADER
Workload Automation Programming Language can read subsystem specific OPTIONS statements after it has read the default options from the OPTIONS input source. Use the SUBSYS keyword to specify the DD statement from which to read the subsystem specific options (the default is <blank>).
SUBSYS
How to manage the SUFFIX Batch Loader keyword.
SUFFIX
SUPMSG allows you to prevent a message from being written to the message log.
SUPMSG
Restricts Batch Loader output and input syntax to legacy Batch Loader (EQQYLTOP) compatibility.
SYSID allows you to set the field with which to look up LPAR specific values in lookup tables such as OPTIONS TRACKERS.
SYSID
OPTIONS TRACKERS
TAGMODE turns on automatic tagging of descriptions for All Workstations Closed, Calendar Specific Dates, and Workstation Intervals.
TAGMODE
Use TAGMASK to describe the layout of the tag to be added to a description of a date related option. Its use is activated by OPTIONS TAGMODE.
TAGMASK
OPTIONS TAGMODE
Used to set the DD name for allocating individual members of a library for processes that allow member name input from a PDS or PDSE.
When using the equal sign (=) to represent a DATE or TIME within Workload Automation Programming Language, by default the date and time when Workload Automation Programming Language started is used. Workload Automation Programming Language maintains a static internal time to allow you to generate multiple statements with a "current time" that is consistent across all statements, regardless of whether the time changes during run time.
DATE
TIME
The TRACE keyword causes Workload Automation Programming Language to list detailed HCL Workload Automation for Z Program Interface information to help you debug any difficulties you might be having.
TRACE
The TRACKERS keyword allows you define a lookup table to allow the HCL Workload Automation for Z TSO commands to know the tracker subsystem to which to send events for a combination of Controller and JES Node.
TRACKERS
Sets the default value for any commands that use the UPDATE keyword to determine whether to actually perform updates, or just simulate the process.
Workload Automation Programming Language allows variable names to consist of letters, numbers, and the characters: at sign (@), number sign (#) and underscore (_).
Application descriptions that are members of an application group have the name of the group definition in field ADGROUPID of segment ADCOM. VERADGRD controls the verification of this field when a new application description is created or an existing application is replaced.
ADGROUPID
VERADGRD
Specifies the version of HCL Workload Automation for Z with which to communicate. This prevents inappropriate commands from being issued and generates only Batch Loader compatible with the specified version.
The special resource description, SR, has fields representing workstations, the complete workstation names, or generic names; field SRDWSNAME of segment SRDWS for default connected workstations, field SRIWSNAME of segment SRIWS for workstations connected to an interval. VERSRWSN controls the verification of these fields when a new special resource is created or an existing resource is replaced.
SRDWSNAME
SRDWS
SRIWSNAME
SRIWS
VERSRWSN
Specifies the list of day of the week to be used in the DATEADD and DATEFORM functions. By default, the names are in English but you can use OPTIONS MMMM to set the days in a different language.
Use this option to specify that when commands are passed to Workload Automation Programming Language through a control block, the log messages are returned in a second control block.
Use this option to set the severity of the Workload Automation Programming Language messages that are returned through a control block.
In addition to the HCL Workload Automation for Z variables and user variables, Workload Automation Programming Language has access to some additional information relating to the job running Workload Automation Programming Language and when scheduled the operation and occurrence within which it is running.
The Workload Automation Programming Language for z/OS is a REXX based tool provided to give you easy access to the features of the HCL Workload Automation for Z Program Interface (PIF). Workload Automation Programming Language can be extended by WAPLEXEC programs, which are REXX programs using Workload Automation Programming Language functions to tackle specific tasks or functions.
Messages and return codes provide information for problems occurred.