Using the ISPF Automation Table Administrator
What is it?
The ISPF Automation Table Administrator is an ISPF interface for maintaining the z/OS Agent's automation tables. From it, you can maintain DSN triggers, WTO (console message) triggers, and active event definitions.
Three functions are supported by the ISPF Administrator:
- DSN Trigger Table maintenance.
- WTO (Console Message) Trigger Table maintenance.
- Active Event Definition Table maintenance.
To display a given table, you may S)elect any entry on the main menu. To add an entry to a table without going to a table display screen, use the A)dd line command.
ISPF table administration and selection:
================== OpCon/xps Automation Table Administration = 21.00.04 ======
Command =>
- Edit Dataset Resource Table
- Edit Message Resource Table
- Edit Action Table
Enter HELP for commands and syntax.
============================================================== XPS21.00 ======
Primary commands available on the main menu
- XPSID x
- Switches to XPSID=x and returns to the main menu
- FIND commands
- See Find options
- JOBQ
- Displays the entries in the job tracking queue
- MSGQ
- Displays unsent entries in the "messages to SAM" queue
Line commands available on the main menu
- S - Selects the table for display
- A - Opens a dialogue to add a new entry without opening the table first
Primary commands available on table displays
- XPSID x
- Switches to XPSID=x and returns to the main menu
- FIND commands
- See Find options
- + (plus)
- Switches table displays to expanded format
- - (minus)
- Switches table displays to short format
Line commands on table displays
- S - Opens the selected entry for display or edit
- E - Edit the event linked from the selected event
- If no event is linked from the entry, same as S
- This action will also be invoked if a linked event is added or changed on a DSN or WTO entry
- D - Deletes the selected entry
- A - Opens a dialogue to add a new entry, starting with the selected entry as template
- R - Resets a DSN or WTO entry to "not triggered" status
- T - "Triggers" the selected entry
- If the entry is "passive" (no linked event), it is set to "triggered" status
- If the entry is "active", a dialogue will be opened to send the linked event as MSGIN
- An active trigger will always require confirmation, and allows editing the MSGIN event string
You are prompted for confirmation of D, R and T commands at least once each session. If you turn confirmation "OFF", then you are not prompted for confirmation for the duration of the current session.
Find options
The FIND, FAN and FAT primary commands are available to limit the table displays.
- FIND chars will show only entries whose key field start with chars.
- May be abbreviated to F chars
- FAT [chars] (find all triggered) will show only entries that are in triggered status.
- FAN [chars] (find all non-triggered) will show only entries that are not in triggered status.
- FIND OFF clears the FIND filters.
- The FIND settings are also reset when the primary panel is displayed.
The tables in OpCon/xps for z/OS are Sysplex Global. In other words, all systems in the SYSPLEX mirror all trigger entries, but triggers may be restricted by Machine Id. Setting MachineID to ANY allows the trigger to occur on any system in the SYSPLEX.
DSN table administration
DSN table triggering allows specification of exact dataset names or name masks with wild cards. A '%' will match any single character in the dataset name at that position. A trailing asterisk (*) will match any remaining characters in the dataset name. A dataset name ending in G0000V00 will match any member of a generation data group (GDG) that matches the preceding mask or name.
The following trigger conditions are available:
| Condition | Description |
|---|---|
| CRE | Triggers when a new dataset is created (DISP=NEW). |
| UPD | Triggers when an existing dataset is updated (DISP=OLD or MOD). Does not trigger for newly created datasets. |
| DEL | Triggers when a dataset is deleted (DISP=DELETE) or scratched. |
| SCR | Triggers when a dataset is scratched (Type 17 SMF record). |
| REF | Triggers on any reference to the dataset (open for input or output). |
| CAT | Triggers when a dataset is cataloged (Type 61 SMF record). |
| UNC | Triggers when a dataset is uncataloged (Type 65 SMF record). |
The following dataset activity is excluded from trigger processing:
- Datasets accessed by an abending task are not evaluated for triggers.
- Temporary datasets, VIO (Virtual I/O) datasets, and end-of-volume (EOV) records are ignored.
- VSAM dataset triggers (Type 64) only fire when the dataset is closed, not when it is opened. A VSAM dataset is considered "updated" only if records were added, deleted, or changed during the access.
DSN table view:
=========================== OpCon/xps DSN Table =============================
Command ==> Scroll ==> CSR
-DSName Mask ------------------------------- Name -- By Job - On Sys - Gens
OPCON.TEST%%%.DATASET.G0000V00 WCTEST ZOS1 01/01
-Type-Action ---------------------------------------------------------------
CRE ADDJOB $JOB:ADD,,AdHoc,TESTJOB1,,RSRC=WCTEST;DSN=OPCON.TEST%%%.DATASET
-Last Referenced: 00.000 00:00 Last Triggered: 21.242 13:36 -By Job: BRIANKXX
-DSName Mask ------------------------------- Name -- By Job - On Sys - Gens
OPCON.TEST%%%.DATASET.G0000V00 WCTEST2 ZOS1 00/01
-Type-Action ---------------------------------------------------------------
CRE
-Last Referenced: 00.000 00:00 Last Triggered: 21.278 13:41 -By Job: +BRIANK
******************************* Bottom of data ********************************
In the expanded format, the T-Time represents the Trigger time if this resource has already triggered and is awaiting a job to reference it. The R-Time is the last time a job referenced this entry. The Gens represents the number of generations left to trigger and the original number of generations requested.
If an "ACTIVE" resource trigger is defined, the Event Key contains the event name and Event Cmd displays the constructed MSGIN record that is passed to SAM when this trigger occurs.
Altering a PASSIVE entry that is referenced by a scheduled job may invalidate the entry if the SAM schedule record for the referencing job(s) is not also altered to reflect the change. Each entry in the dataset table must have a unique combination of Resource name, Type, DSN Key, generation count, jobname, and system. Avoid creating an ACTIVE entry that duplicates a PASSIVE entry (i.e., a file prerun on a job definition).
WTO table administration
WTO table (Console Message) triggering allows two keys per message: one FIXED and one VARIABLE. The Msg Off column represents the number of character positions (bytes) from the beginning of the message text to the start of the FIXED key. The Msg Len column represents the length of the FIXED key w/spaces. ALL WTO triggers MUST have a FIXED key. The variable portion is optional. A variable key is defined within brackets {}. Once the fixed key is located in a record, a variable key is scanned for AFTER the end of the fixed key. If MLWTO=Y is set in XPSPARMS, then the variable key will also be searched in any minor lines of the message. The variable text can be used to exclude matches by preceding it with a minus (-) sign.
The variable text between the {} delimiters can be up to 42 characters long. If the variable text exceeds this limit, the trigger entry is skipped.
For WTOR (Write-To-Operator with Reply) messages, the reply ID number at the beginning of the message is automatically excluded before matching. The Msg Off value should be set relative to the message text that follows the reply number, not relative to the reply number itself.
Just as with datasets, message triggers can have generations, System-id and creating job criteria. The only substantial difference between the DSN table and the WTO table is the Offset and Length requirements for the FIXED portion of the message key and the ability to "scan" for text content.
WTO table administration:
=========================== OpCon/xps WTO Queues ============================
Command ==> Scroll ==> PAGE
--Msg-Msg-Message--------------------------------Time Range--By Job-- On----
Off Len Key From To Machid
008 003 AM {SA06CDRM to SA02CDRM} 09:21-00:00 ANY
--Orig--Action---Action ------------------------------------------------------
Gens Name
01/01
-Last Referenced: 00.000 00:00 Last Triggered: 00.000 00:00 -By Job:
--Msg-Msg-Message--------------------------------Time Range--By Job-- On----
Off Len Key From To Machid
000 007 IEC705I ANY
--Orig--Action---Action ------------------------------------------------------
Gens Name
01/01 -S TAPEJ "S TAPEJOB"
-Last Referenced: 00.000 00:00 Last Triggered: 00.000 00:00 -By Job:
--Msg-Msg-Message--------------------------------Time Range--By Job-- On----
Off Len Key From To Machid
000 007 IEF285I -{VOL SER} ANY
--Orig--Action---Action ------------------------------------------------------
Gens Name
01/01 $JOBLOG
-Last Referenced: 00.000 00:00 Last Triggered: 00.000 00:00 -By Job:
******************************* Bottom of data ********************************
Each entry in the message table must have a unique combination of Resource name, Message key, generation count, jobname, and system. Avoid creating an ACTIVE entry that duplicates a PASSIVE entry (i.e., a message prerun on a job definition).
Automated response feature
The WTO Table and ISPF interface can be used to set up automated WTOR replies. This feature is agent resident and independent of the SAM or scheduling functions. The following example shows the syntax to be used in the Event Token field (Plus "+" Sign) to denote WTOR message reply text.
Automated response entry in WTO table:
┌──────────────────────────────────────────────────────── ────────┐
│ Enter Request │
│ OpCon ISPF - WTO Message Table Update │
│ │
│ Resource Name: REPLYTST Optional │
│ Text Offset : 000 Offset to Initial Text │
│ Fixed Len : 008 Length of Initial Text │
│ Message Key : XPSTIMER {Test WTOR} │
│ Time Range : In Format: HH:MM-HH:MM │
│ Issue Job : Job Issuing Message │
│ Generations : 01/01 Generations before trigger │
│ On Mach-ID : ANY Issuing MachineID or "ANY" │
│ Action : +Y │