Zeke Reference Guide
Zeke Reference Guide
Zeke Reference Guide
Reference Guide
Version 5.2
Publication Number: AZM0400-52
Publication Date: May 2002
The information contained herein is the confidential and proprietary information of Allen Systems Group, Inc. Unauthorized use of this information and disclosure to
third parties is expressly prohibited. This technical publication may not be reproduced in whole or in part, by any means, without the express written consent of Allen
Systems Group, Inc.
1982-2002 Allen Systems Group, Inc. All rights reserved.
All names and products contained herein are the trademarks or registered trademarks of their respective holders.
ASG-Zeke and Zeke are trademarks of Allen Systems Group, Inc.
Telephone Number
Product Name/Publication
Version #
Product:
Publication:
Tape VOLSER:
Enhancement Request:
Site ID
Contact name
Publication Date
The severity code (ASG Support uses an escalated severity system to prioritize service to
our clients. The severity codes and their meanings are listed below.)
Verify whether you received an ASG Service Pack for this product. It may include
information to help you resolve questions regarding installation of this ASG product. The
Service Pack instructions are in a text file on the distribution media included with the
Service Pack.
Leave a detailed message including your name and phone number. A Support representative
will be paged and will return your call as soon as possible.
Please have the information described above ready for when you are contacted by the Support
representative.
Meaning
Production down,
critical situation
Within 30 minutes
Within 2 hours
Within 4 hours
Within 4 hours
ASG provides software products that run in a number of third-party vendor environments. Support
for all non-ASG products is the responsibility of the respective vendor. In the event a vendor
discontinues support for a hardware and/or software product, ASG cannot be held responsible for
problems arising from the use of that unsupported version.
Phone
Fax
800.354.3578
239.263.2883
support@asg.com
Australia
61.2.9460.0411
61.2.9460.0280
support.au@asg.com
England
44.1727.736305
44.1727.812018
support.uk@asg.com
France
33.141.028590
33.141.028589
support.fr@asg.com
Germany
49.89.45716.222
49.89.45716.400
support.de@asg.com
Singapore
65.6332.2922
65.6337.7228
support.sg@asg.com
1.239.435.2200
support@asg.com
Phone
Your Location
Phone
800.354.3578
Asia
65.6332.2922
Japan/Telecom
0041.800.9932.5536
Australia
0011.800.9932.5536
Netherlands
00.800.3354.3578
Denmark
00.800.9932.5536
New Zealand
00.800.9932.5536
France
00.800.3354.3578
Singapore
001.800.3354.3578
Germany
00.800.3354.3578
South Korea
001.800.9932.5536
Hong Kong
001.800.9932.5536
Sweden/Telia
009.800.9932.5536
Ireland
00.800.9932.5536
Switzerland
00.800.9932.5536
Israel/Bezeq
014.800.9932.5536
Thailand
001.800.9932.5536
Japan/IDC
0061.800.9932.5536
United Kingdom
00.800.9932.5536
1.239.435.2200
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
About this Publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Related Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Publication Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
2
3
3
4
4
5
5
5
Batch Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
BACKUPCopy the Zeke Database or Audit Trail Dataset . . . . . . . . . . . . . . . . . . . . . . 6
CALENDARAdd/Maintain System Calendars. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
CREATEInitialize the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
DOCCopy Documentation Into the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
EVENTAdd/Maintain Event Master Records. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
JCLCopy JCL Into the Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
OPTIONS Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
RESTORERestore Database Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
SCHEDULECreate the New Schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
OVERRIDESelect Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
VAULTControlling the Vault Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Simulating the Schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
SIMULATESimulating the Schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
2 ZEKESET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
SET Statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Statement Syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET ABENDTerminate a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET ROUTECreating Large Block Letter Separator Pages . . . . . . . . . . . . . . . . . . . .
SET xCOMIssuing System and Zeke Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET VARIABLEDefining Zeke Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET COMMENTAdd Comment Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET CONDCODE or SET RETCODESet Condition or Return Codes . . . . . . . . . . .
SET GOTOBranch within Control Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET WAITSetting a Wait Interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
OPTION NOSUBVariable Substitution in ZEKESET . . . . . . . . . . . . . . . . . . . . . . . .
CDATEDate Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ON ERRORSyntax Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
75
79
79
81
82
84
84
86
87
87
88
95
3 Report Writer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Generating Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Output Reports to File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Report Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Report SequenceEvent and Plan Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page BreaksEvent and Plan Listings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Line SpacingEvent and Plan Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Selecting FieldsEvent and Plan Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
104
104
106
107
107
Contents
Command Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Verifying Command Acceptance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entering Multiple Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
141
142
142
143
159
159
160
166
167
172
172
173
174
ZDISPLAY Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Event Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Variable Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Initiator Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Automatic Reply Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying System Pool Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Zeke Agents Identifying Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Remote Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Communication Records Information . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Database Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Tracing Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PathFinderDisplaying Preceding and Succeeding Events. . . . . . . . . . . . . . . . . . . . .
ZDISPLAY Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
174
176
181
182
183
184
184
185
185
186
186
189
191
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
iv
Preface
The ASG-Zeke OS/390 Reference Guide provides information about the enterprise
scheduling product ASG-Zeke (herein called Zeke). This guide assumes that the
appropriate components have been installed at your site.
Allen Systems Group, Inc. (ASG) provides professional support to resolve any questions
or concerns regarding the installation or use of any ASG product. Telephone technical
support is available around the world, 24 hours a day, 7 days a week.
ASG welcomes your comments, as a preferred or prospective customer, on this
publication or on any ASG product.
Chapter 1, "Zeke Utility Program," describes the Zeke batch utility functions and
parameters.
Chapter 2, "ZEKESET," provides information on using Zeke job and input control
statements.
Chapter 3, "Report Writer," describes the LIST function of the Zeke batch utility,
which produces several types of reports.
Related Publications
The documentation library for ASG-Zeke consists of these publications (where nn
represents the product version number):
ASG-Zeke OS/390 Users Guide (AZM0200-nn) explains the procedures for using
Zeke to schedule your enterprise.
ASG-Zeke Messages and Codes (AZM1200-nn) lists the Zeke messages, describes
their meanings, causes, and resolutions, and provides return code explanations.
Note:
vi
Publication Conventions
Allen Systems Group, Inc. uses these conventions in technical publications:
Convention
Represents
ALL CAPITALS
Initial Capitals on Each Word Window, field, field group, check box, button, panel (or
screen), option names, and names of keys. A plus sign
(+) is inserted for key combinations (e.g., Alt+Tab).
lowercase italic
monospace
Monospace
vii
viii
This chapter describes the Zeke batch utility program, the format of the statements, and the
commands and keywords. It also includes a description of the Simulation program.
General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Statement Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Character String Delimiters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Formatting Rules for OCCURS/WHEN Clauses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Jobnames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Zeke Input Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Acceptance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Zeke Program JCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
3
3
4
4
5
5
5
Batch Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
BACKUPCopy the Zeke Database or Audit Trail Dataset . . . . . . . . . . . . . . . . . . . . . . 6
CALENDARAdd/Maintain System Calendars. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
CREATEInitialize the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
DOCCopy Documentation Into the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
EVENTAdd/Maintain Event Master Records. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
JCLCopy JCL Into the Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
OPTIONS Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
RESTORERestore Database Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
SCHEDULECreate the New Schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
OVERRIDESelect Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
VAULTControlling the Vault Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Simulating the Schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
SIMULATESimulating the Schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
General Information
These are the main functions performed by the utility program.
Command
Description
SCHEDULE
BACKUP
CREATE
Initializes a database
RESTORE
EVENT
CALENDAR
OPTIONS
JCL
DOC
VAULT
Statement Format
The following are the formatting rules for the Zeke utility input statements:
Begin a statement in any column and end the statement by column 72. Columns 73
through 80 are ignored.
Enter $$ (two dollar signs) to signify the end of a statement, so Zeke knows to
process the statement without reading the next command first. This is optional.
Separate parameters and operands by either an equal sign (=) or by one or more
spaces.
If you are running multiple versions of Zeke, the EXEC card must include the
subsystem name, if other than SSSI. For example,
//Z1
EXEC
ZEKEUTL,PARM=SUBSYS=subsystem name
UPD
UPD
UPD
UPD
The following are invalid examples of the use of character string delimiters:
EVENT UPD 4 DESC=(AN OPEN PAREN MUST BE FOLLOWED BY A CLOSE(
EVENT UPD 34 DESC 'DELIMITER CHAR 'QUOTE' CONTAINED IN VALUE'
EVENT UPD 54 DESC=$DOLLAR SIGN MAY NOT BE USED AS DELIMITER$
When there are no delimiters and the value is all numbers, the value is numeric. Otherwise,
it is character.
The following are examples of character, character string, and numeric values:
WHEN
WHEN
WHEN
WHEN
WHEN
(VAR
(VAR
(VAR
(VAR
(VAR
$XYZ
$XYZ
$XYZ
$XYZ
$XYZ
LE
LE
EQ
LE
LE
55)
'55')
YES)
'YES')
/CHAR STRING/)
Numeric value
Character value
Character value
Character (same as above)
Character string
Verify that the clauses contain as many right parentheses as left parentheses.
Refer to your ASG-Zeke OS/390 Users Guide for an overview of how to use OCCURS
clauses and WHEN conditions.
Jobnames
Batch commands support the use of 30-character, mixed-case jobnames, except for
keywords, which must still be entered in upper case.
You must change the editor to CAPS OFF before entering mixed-case jobnames. In CAPS
OFF mode, OS/390 jobnames are not upper cased automatically. You must enter them in
upper case.
The following is a valid statement:
EVENT ADD JOB PayrollReports
With the WHEN condition, you can enter a 30-byte mixed-case jobname as the target of
the jobname triggers, such as EOJ, AEOJ, and NOTDURING JOB. Within the WHEN
condition, Zeke considers case in the jobnames only, not in other WHEN keywords. Both
of the following examples are valid WHEN conditions:
WHEN EOJ JOBA AND EOJ PayrollReports
WHEN eoj JOBA and eoj PayrollReports
4
Command Acceptance
A message is printed on the SYSPRINT dataset describing the results of the utility
request. The last character of the message ID indicates:
Last
Character
Description
Batch Commands
BACKUPCopy the Zeke Database or Audit Trail Dataset
Copies the contents of the Zeke database or the Audit Trail dataset to a tape or disk file.
This creates a backup copy in case the database must be restored.
Use the BACKUP command to backup your database at least once a day. It is
recommended that you back up the database prior to each scheduling run.
The database can be copied in two formats.
Format
Description
Physical
Logical
The copy follows the pointers to the different types of database records
and groups all the elements of an event together. Two logical backups
can be merged into one database. See "RESTORERestore Database
Backup" on page 47 for more information on the RESTORE command.
Note:
The Zeke database is not a normal sequential file and most backup/copy utilities do not
perform properly when used with the Zeke database. Use only the Zeke BACKUP and
RESTORE functions.
The Zeke database BACKUP DD name is ZEKEBK. In the ZEKEUTL jobstream, enter
the Zeke backup file dataset name. This is a sequential file.
Caution! Regardless of the value for the ESIACTV generation option, an external
security call is always made to the SAF Security Interface using the resource
class of Z$CATAL with a resource name of BACKUP## and ALTER authority.
If this class information is not defined in your security package, then the SAF
action and return code are determined by your security product. If you do not
have a security product using SAF, Zekes internal security will be used, which
allows the request by default.
Refer to your ASG-Zeke OS/390 Users Guide for more information on creating the Zeke
databases (primary and vault) and on backing up the Zeke database.
Syntax
BACKUP
PHYSICAL
DATASPACE
TAPE
LOGICAL
DISK
Parameters
Parameter
Description
blank
Creates two backup files per backup. One is physical, the other is
logical. This backup copy can be used for either a physical or logical
restore.
PHYSICAL
Parameter
Description
LOGICAL
DATASPACE
Using this parameter reduces I/O against the database, the duration of
the database-wide enqueue, and the time needed for the backup.
TAPE
DISK
Sample JCL
The following is an example of the JCL for the BACKUP function to back up the Zeke
database to tape:
The following is an example of the JCL for the BACKUP function to back up the Zeke
database to disk:
The Zeke database is enqueued for the duration of the physical backup. It is recommended
that you schedule the backup during the period that has the least amount of CPU activity.
8
Syntax
CALENDAR
ADD calendar-ID
FISCMNTH nn
WORKDAYS days
HOLIDAYS (dates)
EXPIRE (date)
YEAR yyyy
DELETE calendar-ID
UPDATE calendar-ID
FISCMNTH nn
HOLIDAYS (dates)
WORKDAYS days
EXPIRE (date)
YEAR yyyy
Parameters
Parameter
Description
ADD
Two different calendars within the same database can have different
working days and different holidays.
DELETE
UPDATE
calendar-ID
Parameter
Description
EXPIRE
You can update the expiration date using the batch utility program.
To delete an expiration date, you must use Zeke online facility.
Refer to your ASG-Zeke OS/390 Users Guide for more information
on Zeke calendars.
FISCMNTH
Required with the ADD function. Specify the starting fiscal month.
Values are 1 through 12 (January through December).
HOLIDAYS
10
Examples
The following example updates calendar ID A with the proper holidays:
CALENDAR UPDATE A
HOLIDAYS (01/01/2001,07/04/2001,11/23/2001,11/24/2001,12/25/2001,01/01/2002)
FISCMNTH 1
CALENDAR
WORKDAYS
HOLIDAYS
FISCMNTH
ADD B
MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY
(01/01/2001 07/04/2001 11/23/2001 11/24/2001 12/25/2001 01/01/2002)
1
The CREATE function uses the filename ZEKENEW. All other system functions use the
filename ZEKECAT.
The CREATE function is not necessary if the database is being restored, because the
RESTORE function automatically initializes the database (unless the merge option is
specifiedin this case, CREATE functions are not performed).
Caution! Regardless of the value for generation option ESIACTV, an external security
call is always made to the SAF Security Interface using the resource class of
Z$CATAL with a resource name of CREATE## and ALTER authority. If this
class information is not defined in your security package, then the SAF action
and return code are determined by your security product. If you do not have a
security product using SAF, Zekes internal security is used, which allows the
request by default.
Caution! If you have a ZEKE15B user exit in place, then it can override any external
security return code depending on how you have coded ZEKE15B.
11
Refer to your ASG-Zeke OS/390 Users Guide for more information on restoring the Zeke
database and creating the Zeke databases (primary and vault).
Syntax
CREATE
PLEXID name
Parameter
Parameter
Description
PLEXID
Sample JCL
Following is an example of a database create jobstream.
//ZEKECRET
//ZUTL
//ZEKENEW
//
//SYSIN
CREATE
/*
JOB
,MSGLEVEL=(1,1),CLASS=A
EXEC
ZEKEUTL
DD
DSN=ZEKE.MVS.CATALOG,DISP=(NEW,CATLG),
UNIT=SYSDA,VOL=SER=ZEKEVL,SPACE=(CYL,(10))
DD
*
Zeke's database is a simple SD type file. The label information must not indicate ISAM,
DA, or VSAM for the file type; it must indicate SD.
12
The DD statement of the source dataset must be specified in the jobs JCL or the Zeke
procedure.
Syntax
DOC
event-number
ADD
doc-source
LASTEVent
DELETE
TEXT
ALL
DSN
REPLACE
NOTE
SCRATCH
Parameters
Parameter
Description
ADD
DELETE
REPLACE
event-number
LASTEVent
Tells Zeke to use the event number from the last successful event
task (for example, the last event that was added or updated).
doc-source
13
Parameter
14
Description
BIMLibrary
CONDORMember
DDNAME
DISK
INSTREAM
DOCSTART
Type
Columns
Statements
TEXT
80
unlimited
NOTE
60
10 statements
SCRATCH
60
10 statements
DSN
52
unlimited
DOCSTOP
LIBRARIAN
PANVALET
Parameter
Description
PDS
TEXT
SEQUENTIAL
TAPE
Examples:
I T 001 TEST.TAPEFILE.INPUT
O D 000 TEST.DASDFILE.OUTPUT
15
Parameter
Description
NOTE
SCRATCH
Sample JCL
The following JCL provides examples for some parameters:
//STEP1
//PDSDOC
//SEQDOC
//SYSPRINT
//SYSIN
DOC ADD 34
EXEC ZEKEUTL
DD DSN=PDS.DOC.TO.ZEKE,DISP=SHR
DD DSN=SEQ.DOC.TO.ZEKE,DISP=SHR
DD SYSOUT=*
DD *
LIBRARIAN DOCMEM1
Adds DOC TEXT to Event 34 in the Zeke database
if DOCMEM1 is found in the Librarian database
specified in the Zeke started task proc.
DOC ADD 36 PDS DOCMEM3 DDNAME PDSDOC Adds DOC TEXT from DOCMEM3 to Event 36 if
DOCMEM3 is in the PDS library specified by
the DD=PDSDOC in the add job JCL.
DOC ADD 37 DDNAME SEQDOC SEQUENTIAL
DOCSTART
I T 001 ZEKE.FILE.NAME
O T OO1 ZEKE.FILE.NAME2
DOCSTOP
DOC REP 38 INSTREAM SCRATCH
DOCSTART
THIS IS SCRATCH DATA
ENTERED VIA BATCH
DOCSTOP
/*
16
Syntax
EVENT function
event-type
parameters
event-number
LASTEVent
LINE3
LINE5
LINE2
LINE4
LINE6
Description
System command
Zeke command
VM command
SCOM2
SCOM3
SCOM4
SCOM5
SCOM6
17
Job Events
The following parameters are unique to job events. These parameters further define a job
event and its resource requirements.
JCL retrieved by the user exit ZEKE14C may also be defined by using the keywords
specified in the X14CNM1 and X14CNM2 fields on the Generation Options screen.
One of the following Zeke JCL source parameters is required:
ZEKE
PANVALET
USER-SUPPLIED
BIMEDIT
CONDORMEMBER
FNAME
LIBRARIAN
PDS
If JCL source parameters are not specified, the system has no JCL source when the job is
ready for dispatch. A message is issued to the system operator and the job event is placed
on hold.
Message Events
A message event can be any message you want to issue to the system console.
REXX Events
REXX events can be used to execute REXX execs. The following parameters are unique
to REXX events.
REXXCLass
REXXPRIority
ARGuments
Description
function
CONVERT
18
Parameter
Description
COPY
COPYAll
DEACtivate
DELete
REACtivate
UPDate
19
Parameter
Description
event-type
JOB
MSG
MSGn
'
20
Parameter
Description
SCOMn
VCOM
ZCOM
REXx
event-number
Use this parameter in place of the event number to tell Zeke to use
the event number from the last successful event task (for example,
the last event that was added or updated).
21
Parameter
Description
XXXXXXXX
Valid with job events only. This parameter is set by the user in the
/OPTIONS function of Zeke online facility (see X14CNM1 and
X14CNM2). Specify the name followed by the member name. The
name can be up to 8 characters.
For example,
EVENT UPD 100 USERNAME TESTJCL
Enter a code to identify the application the event is a part of. The
code can be up to 8 characters. This field is used to sort, select, and
restrict access to events by the Report Writer, work center control,
and Zeke operator commands.
ARGuments
AVGDURation
BIMLibrary
Valid with job events only. Enter the Bim-Edit library that
contains the appropriate JCL.
BIMMember
Valid with job events only. Enter the Bim-Edit member name.
CALid
22
Parameter
Description
CCACTION
CCLOW
23
Parameter
Description
CCOPER
Greater than
EQ
Equal to
LE
LT
Less than
GE
NE
Not equal to
RA
Range
CCPROC
CCSTEP
CLAss
Valid with job events only. Enter the class or class list (up to six in
a list) for the event.
For example,
EVENT UPD 56 CLA A
EVENT UPD 56 CLA (A,B,C)
EVENT ADD JOB TEST CLASS (G,H,I,T,J,K)
24
Parameter
Description
CONTrol
NO
NX
CONVert
Valid with job events only. Enter a platform type to change the
event to a different one. "PLATform" on page 32 for a list of valid
platforms. Use this parameter only with the UPDATE function and
the PLATFORM parameter.
CONDORMember
Valid with job events only. Enter the Condor library member that
contains the appropriate JCL.
CONDORVersion Valid with job events only. Enter the Condor version number. If
omitted, the default is 001.
CONDORPass
DESCription,
DESC2
DPRiority
DRL
25
Parameter
Description
EARLYtime
Format HH:MM. From 00:00 to 47:59. Enter the earliest time this
event can be dispatched. To remove this time, enter EARLY with
no operand. If the time is greater than 24:00, Zeke knows the event
is to be processed the next day.
For example,
EARLYTIME 01:00
Enter the name of the event. This field displays on other Zeke
screens and reports to help you identify the event. End of Event
(EOE) WHEN conditions and operator commands reference
events by event name.
EXPIre
Valid with job events only. Enter the CMS file name that contains
the appropriate JCL or EXEC that creates the JCL.
For example,
EVENT ADD JOB JOBNAM8 FNAME USRNAM01
26
Parameter
Description
FREQCalc
FREQuency
Valid with job events only. Enter the CMS file type. If you enter
EXEC, Zeke assumes that the operand named is an EXEC that
creates the JCL.
For example,
EVENT ADD JOBNAME9 FNAME USRNAM01 FTYPE OSJCL
EVENT ADD JOBNAME9 FNAME USRNAM02 FTYPE EXEC
27
Parameter
Description
JCLSTART
JCL SYSIN data is limited to 450 lines and 80 characters per line.
Leading blanks are reserved for all statements not beginning with
//, /+, /-, or +##. All JCL statements preceded by one of the
characters listed above are automatically positioned in column 1.
Note:
JCLSTOP
28
Indicates the end of the SYSIN JCL to be added for an event as part
of the EVENT ADD process. (See "JCLSTART" for more
information.)
Parameter
Description
LATEtime
Format HH:MM. From 00:00 to 47:59. Enter the time the event
must be dispatched by. If the event is not dispatched by this time,
a message is issued to the console. (If this parameter is omitted, no
message is issued.) If the time is greater than 24:00, Zeke knows
the event is to be processed the next day.
For example,
LATETIME 20:00
Valid with job events only. Enter the Librarian library member
name that contains the appropriate JCL.
LINE1
LINE2
LINE3
LINE4
LINE5
LINE6
When updating the comment lines, you only need to specify the
lines to be changed. To blank out a comment line, enter the
appropriate LINE parameter and one space between delimiters.
For example,
LINE2 ' '
Parameter
Description
MEM
Enter the PDS member name containing the events JCL. For
example,
EVENT ADD JOB TESTJOB2 PDS PRODJCL MEM TEST
MULThit
MUSTend
Format HH:MM. From 00:00 to 47:59. Enter the latest time the
event can complete processing. If the MUSTEND time is less than
the calculated time, the event is put on hold and an operator
message is issued to the console.
NOTAFter
Format HH:MM, From 00:00 to 47:59. Enter the latest time the
event can be dispatched. If the NOTAFTER time is less than the
system time, the event is put on hold and an operator message is
issued to the console.
NOTE1
NOTE2
NOTE3
NOTE4
NOTE5
NOTE6
NOTE7
NOTE8
NOTE9
NOTE10
NWDAY
30
On non-workday
Before non-workday
Parameter
Description
OCCURS
Valid with job events only. Enter the Panvalet library member
name that contains the appropriate JCL. Up to 10 characters.
For example,
EVENT ADD JOB JOBNAME3 PANVALET PANNAME1
PDS
Enter the PDS DD name that will be associated in the Zeke started
task with the PDS containing this event's JCL. The member name
is required with PDS.
EVENT ADD JOB TESTJOB1 PDS PRODLIB2 MEM TESTJCL2
31
Parameter
Description
PLATform
Although the AIX, HPUX, and SUN platform codes listed above
are supported, ASG recommends you use the UNIX platform
code.
PRIority
Valid with job events only. Enter the OPSYS priority code
(between 1 and 99) that is valid for the platform this job is to
execute on. If this parameter is omitted, the default priority code
as defined by the generation option DEFJPRTY is used.
For example,
PRIORITY=5
RESASSume
Enter the code indicating whether the event will obtain the
resource from an abended event that has specified
RESKEEP=YES. (If RESMODE is SR, RESASSUME and
RESKEEP must be No.) Valid codes are No, Yes, and Same.
RESASSUME=Y
The event can steal the resource from any abended event that
has specified RESKEEP=YES.
RESASSUME=S
The event that abends can steal the resource from itself, but
cannot steal it from another abended event.
32
Parameter
Description
RESCount
RESHold
Enter the code indicating whether to keep the resource if the event
abends. This resource can be obtained from a restart/rerun event.
(If RESMODE is SR, RESASSUME and RESKEEP must be No.)
RESKEEP=NO
RESMode
RESName
ES
*SR
33
Parameter
Description
RETAin
Enter the code indicating whether Zeke should retain the event if
it is not dispatched on the scheduled date.
For example,
RETAIN=YES
REXXPRIority
ROUTE
SCHEDADD
34
Parameter
Description
SCHEdtime
35
Parameter
Description
SCOM2
SCOM3
SCOM4
SCOM5
SCOM6
SCOMAPPEND
36
Parameter
Description
SCOMSTART
SCOMSTOP
SET
SYStemid
Enter a code to identify the system or pool that owns the event. An
event is associated with only one system or pool. The default is A.
For example,
SYS PROD
SYS A
37
Parameter
Description
TAPES
Valid with job events only. Enter the number of tape drives
required by this job (from 0 to 255). Zeke ensures that the number
of tape drives is free before dispatching the job. If the job is ready
to dispatch and the number of drives is not free, Zeke notifies the
operator that the job is waiting on xxx drives.
This number can be altered by operator command in the SQR, not
the EMR.If Zeke is generated with CALCTAP=YES, Zeke
calculates this number based on the last run. You only need to
specify a number to override this value.
For example,
TAPES=3
Enter the name of the system where the job will execute. The
system name in the SYSTEM field is the dispatching system. If not
specified, Zeke defaults to *Local. The target value to use for
remote/other system dispatch can be acquired by reviewing the
generation option NETREGID of the remote system desired.
TIMES
38
TRIG=F
TRIG=L
Parameter
Description
USERid
Enter a code to identify the person who is responsible for the event.
The user ID can consist of up to 8 characters.This field is used by
System events for reporting purposes, Comment events for work
center control, and the online security facility for limiting access.
EVENT ADD COMMENT USERID DATACTL1...
EVENT ADD JOB ABC USERID OPERATOR...
VERLOAD
WHEN
Enter any prerequisites that must occur before the event can be
dispatched. Up to 1360 characters.
For example,
EVENT ADD JOB WHEN (EOJ JOBA)
39
Parameter
Description
The WHEN clause is not valid for workcenters. Use the SET
clause instead.
ZEKEJCL
40
Syntax
JCL
ADD
event number
REPLACE
LASTEVent
DELETE
event number
source
LASTEVent
Parameters
Parameter
Description
ADD
REPLACE
Replaces the event's existing JCL with the JCL from an outside
source.
DELETE
Deletes an event's existing JCL from the Zeke database. Only the
event number is required.
event-number
LASTEVent
Use this parameter in place of the event number to tell Zeke to use
the event number from the last successful event task (for example,
the last event that was added or updated).
source
Specifies the source of the existing JCL. The DD statement for the
source dataset must be specified in the jobs JCL or the Zeke
procedure.
Note:
41
Parameter
Description
CONDORMember
DDNAME
DISK
INSTREAM
LIBRARIAN
PANVALET
PDS
SEQUENTIAL
TAPE
42
OPTIONS Function
Performs the following functions:
Establish and update the company name and address displayed on reports
The OPTIONS function will attempt to update the GENOPT or GENSYS record of the
actual SYSID the update job is executed on. If there is no GENOPT or GENSYS record
for that SYSID, then the generic SYSID record (********) is updated. If you want to
update the generation options for a specific SYSID, use the SYSGEN parm.
Syntax
OPTIONS
parameters
Parameters
Parameter
Description
AUDITCLS
Enter the code (YES or NO) indicating whether to track and log changes
to internal security class records.
OPTIONS AUDITCLS YES
AUDITCMD
Enter the code (YES or NO) indicating whether to track and log Zeke
operator commands.
AUDITCND
Enter the code (YES or NO) indicating whether to track and log changes
to calendar records.
AUDITECD
Enter the code (YES or NO) indicating whether to track and log changes
to external security class definition records.
AUDITEMR
Enter the code (YES or NO) indicating whether to track and log changes
to event master records (EMRs).
AUDITEVT
Enter the code (YES or NO) indicating whether to track and log an
event's execution flow.
AUDITGOP
Enter the code (YES or NO) indicating whether to track and log changes
to Zeke generation options.
43
Parameter
Description
AUDITNAM
Enter the code (YES or NO) indicating whether to track and log changes
to your company name or address.
AUDITOPR
Enter the code (YES or NO) indicating whether to track and log changes
to internal security operator records.
AUDITPAS
Enter the code (YES or NO) indicating whether to track and log changes
to passwords.
AUDITPIN
Enter the code (YES or NO) indicating whether to track and log changes
to partition or initiator definitions.
AUDITPOO
Enter the code (YES or NO) indicating whether to track and log changes
to pool records.
AUDITRES
Enter the code (YES or NO) indicating whether to track and log changes
to resource definition records.
AUDITSQR
Enter the code (YES or NO) indicating whether to track and log changes
to schedule queue records (SQRs).
AUDITVAR
Enter the code (YES or NO) indicating whether to track and log changes
to Zeke variable records.
CPUDEL
CUSTID
Enter the customer ID. Valid values are hex digits (0 through 9, A
through F), eight characters in length, and the fifth position is 0 through
7.
OPTIONS NAME1 COMPANY NAME CUSTID 1AE20F17
GRESActv
Enter the code (YES or NO) indicating whether the resource being
defined is available (active). Required when defining a resource. (Refer
to the entry for GRESOURCE for an example.)
GRESCnt
Enter the maximum shared count for the resource being defined (from 1
to 65,535). This number represents how much of a resource is available
to an event. (Refer to the entry for GRESOURCE for an example.)
If not specified, this value defaults to 1.
44
Parameter
Description
GRESOurce Enter the name of the resource being defined. The name can be up to 44
characters. Zeke checks the availability of these resources before the
event is dispatched.
Required when defining a resource. No blanks accepted.
Example of resource definition:
OPTIONS GRESOURCE TESTRESOURCENAME GRESSYID SYSTEMA
GRESACTV YES GRESCNT 5
GRESSyid
Enter the name of the system that owns the resource. (Refer to the entry
for GRESOURCE for an example.)
If not specified, this value defaults to GLOBAL, which means that any
system can share this resource.
You can specify a resource name more than once with different system
IDs.
If the events system ID is assigned to a pool, each resource for that event
should be defined as a GLOBAL resource to ensure proper dispatching.
MULTHit
MULTISys
Enter the code (YES or NO) indicating whether the database is shared by
more than one machine. This parm changes the generation option record
for the specified system.
OPTIONS MULTISYS=YES SYSGEN VSE230C
NAME1
NAME2
NAME3
NAME4
PASSword
45
Parameter
Description
DElete
REplace Replaces the entire existing password list with the specified
list. For example:
OPTIONS PASSWORD (AAAAAAAA,BBBBBBBB,CCCCCCCC) REPLACE
POSid
Enter the code (YES or NO) indicating whether to assign a unique ID for
tracking only those jobs dispatched by Zeke. This parm changes the
generation option record for the specified system. The following
example changes the default GENSYS record.
OPTIONS POSID NO
POSIDEND
If POSIDEND is YES, then Zeke jobs that get JCL errors will not be
placed in FAIL status, but will be left pending.
STATus
Prints a database status report. This report lists the amount of used and
available space in the Zeke database.
OPTIONS STATUS
SYSGEN
Enter the system ID of the system you are updating. For example, to
update the POSID option for the system ID PRODSYS enter,
OPTIONS POSID NO SYSGEN PRODSYS
46
47
Syntax
RESTORE
NEWCATLG
DISK
NEWCATID
OLD
NOMSG (default)
LOGICAL
DISK
MESSAGE
MERGE nnnnnnnn
NEWCATLG
NEWCATID
NOSCHED
PLEXID name
NOVAULT
Parameters
48
Parameter
Description
PHYSICAL
(default)
LOGICAL
DISK
Restores the database from a disk file. The default is to restore from a
backup tape.
Parameter
Description
MERGE
Use this parameter to merge the backup database with the existing
database. Do not perform the CREATE function. MERGE can only be
done with a logical restore. The LOGICAL parameter is required.
Enter the starting event number for the backup database's events. Choose
a number higher than any event number in the existing database. For
example, if MERGE 101 is entered, the backup database's event 1 is
renumbered 101, event 2 becomes 102, etc. The event numbers in
REFEVENT OCCURS clauses are adjusted accordingly. The event
numbers in the existing database are not changed. Duplicate variables,
calendars, and security records are dropped.
For example,
RESTORE LOGICAL MERGE 1001
Merge the backup database with the existing disk database. Event
number 1 is renumbered as 1001, event 2 becomes 1002, etc.
Note:
NEWCATLG
Specify this option if the Zeke database was corrupted. Zeke maintains
a table of active CPU IDs. If the table was not cleared before the
RESTORE function, the NEWCATLG parameter must be used. Use this
parameter only if Zeke does not perform a normal CREATE/RESTORE
function.
NEWCATID
49
Parameter
Description
NOVAULT
You must remove any reference to the vault from your started task JCL
or power startup or you will receive error message at Zeke startup.
NOMSG
NOSCHED
Does not restore the schedule records. Only effective for a logical restore
or merge. Use of this parameter is recommended because usually the
schedule records on a backup tape are from the previous day's schedule
and are not desired. Another use for this parameter is for backups
containing downloaded SQRs.
Note:
50
Parameter
Description
PLEXID
The 8-character name that uniquely identifies the Zeke database. Specify
this option to change the PLEXID name for the database.
Examples:
RESTORE PLEXID PT4X
Sample JCL
The Zeke restore file DD name is ZEKERS. In the ZEKEUTL jobstream, enter the Zeke
backup file dataset name.
//ZEKEREST JOB
,MSGLEVEL=(1,1),CLASS=A
//STEP1
EXEC PGM=IEFBR14
//ZEKE
DD
DSN=ZEKE.MVS.CATALOG,DISP=(NEW,CATLG),
//
UNIT=SYSDA,SPACE=(CYL,(10))
//ZRS
EXEC ZEKEUTL
//ZEKECAT
DD
DSN=ZEKE.MVS.CATALOG,DISP=SHR
//ZEKERS
DD
DSN=ZEKE.BACKUP,DISP=OLD,
//
VOL=(,RETAIN,SER=ZEKETP),UNIT=TAPE,LABEL=(1,SL)
//ZEKENEW
DD
DSN=ZEKE.MVS.CATALOG,DISP=SHR,
//
UNIT=SYSDA,VOL=SER=ZEKEVL
//SYSIN
DD
*
RESTORE
/*
//ZEKEREST JOB ,MSGLEVEL=(1,1),CLASS=A
//ZRS
EXEC ZEKEUTL
//ZEKECAT
DD
DSN=ZEKE.MVS.CATALOG,DISP=SHR
//ZEKERS
DD
DSN=ZEKE.BACKUP,DISP=OLD,
//
VOL=(,RETAIN,SER=ZEKETP),UNIT=TAPE,LABEL=(1,SL)
//ZEKENEW
DD
DSN=ZEKE.MVS.CATALOG,DISP=SHR,
//
UNIT=SYSDA,VOL=SER=ZEKEVL
//SYSIN
DD
*
RESTORE LOGICAL MERGE 1001
/*
51
If an event is manually added with a future RDATE, the event is NOT removed
from the schedule until the RDATE is reached (regardless of whether the event
has been completed).
If an event is manually added with an RDATE prior to the current date, the
event will be deleted only if the events status is DONE, or if the value for the
RETAIN option in the EMR is N.
Note:
Creates a schedule for a future date. (You can forecast an event schedule and make
changes.)
Analyzes each event defined to the database. Determines if the event hits during
the upcoming schedule period.
Caution! Unpredictable results may occur during schedule load function if schedule
functions are run simultaneously. Do not run more than one schedule batch job
at any time on any system or while any system is in tracking mode (ZKILL
WARM). Do not run the job that executes the SCHEDULE TODAY
ACTIVATE function until all previous schedule load has completed on all
systems. The schedule load is complete when system message Z530GI
SCHEDULE LOAD COMPLETE appears on the system console.
Caution! Do not execute multiple SCHEDULE TODAY ACTIVATE SYSIN functions
within one batch job. Unpredictable results may occur.
The typical schedule period is one working day, from 00:00 to 47:59 (47:59 in order to
select all events possibly due); however, any time range can be specified through a
SCHEDULE parameter.
For example, an installation performs the scheduling function three times a day, from
00:00 to 16:00, from 16:01 to 24:00, and from 24:01 to 47:59. This installation has a
working day from 8:00 am one day to 8:00 am the next divided into three shifts. This
installation's events are all scheduled in the range 08:00 through 32:00. All times from
00:00 to 47:59 must be covered.
52
As an alternative, this installation could run the SCHEDULE function once per day, before
8:00 am, the start of the work day (the 3rd shift processes events scheduled from 24:01 to
32:00 for the previous day). The SCHEDULE function maintains the database's SQRs.
There is an SQR for each event in the schedule. SQRs may be from previous schedule runs
if those events were not completed or disabled. Whether existing Schedule Records are
retained depends on several of the SCHEDULE statement parameters and EMR
specifications.
Note:
Zeke provides a user exit that allows you to change various fields in the SQR during the
schedule build. Refer to your ASG-Zeke OS/390 Installation Guide for more information
on the ZEKE02OX User Exit.
Forecasting
The command SCHEDULE with parameters, such as DATERANGE and GENERATE,
can produce reports covering a single day's schedule or several days in the future.
Do not include the ACTIVATE parameter when creating a forecast schedule run; the
ACTIVATE parameter updates the database with a new schedule.
Refer to your ASG-Zeke OS/390 Users Guide for more information on forecasting and
simulating the schedule, creating the Zeke schedule, and setting Zeke to schedule itself.
Syntax
SCHEDULE
TODAY
parameters
DATE mm/dd/yyyy
Parameters
Parameter
Description
TODAY
DATE
53
Parameter
Description
ACTivate
Removes the schedule records with the specified criteria. You can
specify schedule records by group ID, application ID, and user ID.
For example,
SCHEDULE TODAY CLEAR APP=AAC GROUP=DEP USER=PAYRL
If a schedule record does not satisfy all the criteria specified in the
statement, the schedule record remains in the schedule.
To clear all Schedule Records, enter the following:
SCHEDULE TODAY CLEAR
54
Parameter
Description
DATASPACE
Using this parameter reduces the I/O against the database, the
duration of the database-wide enqueue, and the time required for a
schedule build.
DATERange
55
Parameter
Description
GENerate
DAY
ONE
For example,
SCHEDULE DATERANGE (10/01/2001,
10/03/2001,10/20/2001,10/22/2001) GENERATE RANGE
DATERANGE (10/01/2001,
10/03/2001,10/20/2001,10/22/2001)
You can schedule multiple group IDs (up to 20) at one time. To do
so, enclose the set of IDs in parentheses and separate each ID with a
comma. For example,
SCHEDULE TODAY ACT GR (GRP1,GRP2,
GRP3,GRP4,GRP5,GRP6,GRP7,GRP8,GRP9)
Note:
56
Parameter
Description
LISTDesc
LISTEXit
Invokes user exit ZEKE02MX once for each event after all other
reporting for the event is done. Refer to your ASG-Zeke OS/390
Installation Guide for more information on the ZEKE02MX user
exit.
LISTNote
LISTOccurs
LISTWhen
NOMsgs
RDATE
Rebuilds existing SQRs for the current schedule date, as long as they
are still active (have not been dispatched). The rebuilt Schedule
Record reflects the updated Event Record information and resets all
WHEN conditions. This parameter is useful when the EMRs are
updated after the SQRs are created. For example,
SCHEDULE TODAY ACTIVATE REBUILD
Note:
57
Parameter
Description
START
This example places events in the schedule that have a start time of
08:00 or greater. If it is desired to have events placed in the schedule
with start times from 00:00 thru 07:59, then a separate SCHEDULE
TODAY statement is necessary.
Note:
Format HH:MM. From 00:01 to 47:59. Enter the ending time for this
schedule run. Selects all events with a SCHEDULE time equal to or
less than the specified time. Ensure that all times from 00:00 to 47:59
are scheduled.
SCHEDULE TODAY ACTIVATE START 08:01 STOP 16:00
This example places events in the schedule that have a start time
from 08:01 thru 16:00. If it is desired to have events placed in the
schedule with start times out of this range, then a separate
SCHEDULE TODAY statement is necessary.
Note:
58
Parameter
Description
SYStemid
Selects only events that belong to the specified system ID. If omitted,
the schedule is run for all systems defined in the database.
USERid
Selects events with the specified user ID. The user ID can be up to 8
characters. For example,
SCHEDULE TODAY ACTIVATE USER PAYROLL
You can schedule multiple user IDs (up to 20) at one time. To do so,
enclose the set of IDs in parentheses and separate each ID with a
comma. For example,
SCHEDULE TODAY ACTIVATE US (USER1,
USER2,USER3,USER4,USER5,USER6,USER7)
Note:
OVERRIDESelect Events
The OVERRIDE subfunction of the SCHEDULE function allows you to include or
exclude events from the schedule regardless of their OCCURS clauses. An event
specified in an OVERRIDE INCLUDE command is included even if the schedule run
time range does not include the event's schedule time.
For example, if the schedule function runs with START 08:00 and STOP 12:00 and event
4 has a schedule time of 16:00, normally the event is not selected because the schedule
time is out of the range. However, if event 4 is specified in an OVERRIDE INCLUDE
command, the event is selected, regardless of the schedule time.
Enter the OVERRIDE command before the SCHEDULE command or commands. It
remains in effect for the duration of the Zeke batch program.
Refer to your ASG-Zeke OS/390 Users Guide for more information on creating the Zeke
schedule.
59
Syntax
OVERRIDE
INCLUDE
EXCLUDE
Parameters
Parameter
Description
INCLUDE
EXCLUDE
event list or ranges Enter up to 62 single event numbers and/or 30 event ranges for
each OVERRIDE command. Enclose multiple event numbers
within parentheses and separate by commas or spaces. Separate
the beginning range event number and the ending number with a
hyphen (-). The beginning and ending event numbers are included
in the range.
Examples
The following are some examples of the OVERRIDE command:
OVERRIDE INCLUDE 2
Includes event 2.
OVERRIDE INCLUDE (3,15-30,45-60)
Includes events 3, 15 through 30, and 45 through 60.
OVERRIDE EXCLUDE (4 7)
Excludes events 4 and 7.
OVERRIDE INCLUDE 10 EXCLUDE (5 7)
Includes event 10 and excludes events 5 and 7.
60
Sample JCL
Typically, only one OVERRIDE command is entered per batch program, but if more than
one is entered, it is important to realize that each OVERRIDE command adds to and
subtracts from the previous OVERRIDE command selections. For example,
//SCH
EXEC ZEKEUTL
//SYSIN DD *
OVERRIDE INCLUDE 5
SCHEDULE TODAY ACTIVATE
Includes event 5.
/*
61
Syntax
REPORT
INCLUDE
BACKJOBS
EXCLUDE
BACKLOG
COMMANDS
JOBS
MESSAGE
NEWEVENT
PENDING
REXX
TIMES
WORK
Parameters
62
Parameter
Description
INCLUDE
EXCLUDE
BACKJOBS
BACKLOG
COMMANDS
JOBS
MESSAGE
NEWEVENT
PENDING
REXX
Parameter
Description
TIMES
Specifies the TIMES report, which is the schedule listing for a certain
time range (HH:MM through HH:MM).
WORK
Sample JCL
Enter the REPORT command before the SCHEDULE command or commands. It
remains in effect for the duration of the Zeke batch program.
Typically, only one REPORT command is entered per batch program, but if more than
one is entered, it is important to realize that each REPORT command adds to and
subtracts from the previous REPORT command selections. For example,
//SCH
EXEC ZEKEUTL
//SYSIN DD *
SCHEDULE TODAY ACTIVATE
REPORT EXCLUDE NEWEVENT JOBS
SCHEDULE DATE 12/01/2001
REPORT INCLUDE NEWEVENT
SCHEDULE DATE 12/31/2001
/*
63
See also "Disabling Electronic Vaulting" on page 178 for information on performing this
function using the ZDISABLE operator command.
If the vault is disabled via batch, then remove the ZEKEVLT DD namefrom the Zeke
started task JCL before starting Zeke again. Failure to do so will result in vault
initialization.
Be sure to add the ZEKEVLT DD to the batch jobs JCL.
Refer to your ASG-Zeke OS/390 Users Guide for more information on creating the Zeke
databases (primary and vault) and recovery using electronic vaulting.
Syntax
VAULT DISABLE
Simulation jobs must be run against the same subsystem that Zeke is running under.
64
Syntax
SIMULATE
STARTDATE date
STOPTIME time
STARTTIME time
DATABASEDD ddname
STOPDATE date
parameters
Parameters
Parameter
Description
STARTDATE
STARTTIME
Format HH:MM; from 00:00 to 24:00. Enter the simulation start time.
For example,
SIMULATE STARTTIME 00:00
STOPDATE
STOPTIME
Format HH:MM: from 00:00 to 23:59. Enter the simulation stop time.
SIMULATE STOPTIME 23:59
DATABASEDD
If you specify the COPY parameter, you must specify the same
value for TODD as for DATABASEDD. If both TODD and
DATABASEDD are the word DATASPACE, the simulation
database is copied to a data space. "Running Simulation from a Data
Space" on page 71
65
Parameter
Description
SYSTEM
SATISFY
AT***
OPOK
UOCCEXIT
VAR
WHEN**
WRKCNTR
For example,
SIMULATE SATISFY OPOK
66
Parameter
Description
SCHEDRUN
SCHEDCLR
DAILY*
YES
OFF
OFF
Note:
To simulate your current, existing schedule, perform SIMULATE COPY against the
existing database and schedule records with SCHEDRUN and SCHEDCLR set to OFF.
APPLICATION Specify only for schedule run or schedule clear. Selects events with
the specified application ID. If omitted, events with any application
ID are selected.
GROUPID
Specify only for the schedule or schedule clear. Selects events with
the specified group ID. If omitted, events with any group ID are
selected.
USERID
Specify only for schedule run or schedule clear. Selects events with
the specified user ID. If omitted, events with any user ID are selected.
SYSTEMID
REPORT
This parameter starts the simulation report writer and specifies the
output reports. Must be followed by one or more subparameters.
To print reports from a previous simulation run, ensure that the
ZKSMLOG dataset was saved from the previous run. Then, specify
only REPORT parameters in the SYSIN control statements and point
the ZKSMLOG DD to the saved log. You do not need to rerun the
simulation.
ALL
67
Parameter
COPY
Description
CONSOLE
EXCEPTION
JOBFLOW
SCHEDULE
LINES
FROMDD
TODD
68
69
This jobstream is similar to the previous one; however, it is not necessary to repeat the
COPY function once you have copied the dataset. You can change values for any of the
parameters and run a different schedule simulation using the same dataset.
Note:
If you are not performing a COPY, Zeke does not need to be active.
70
This jobstream is only for printing reports. The ZKSMLOG DD provides the data for the
reports and was generated by a previous simulation run.
71
To place the simulation database in a data space, use the special DD name DATASPACE
in the TODD parameter of the COPY command and the DATABASEDD parameter of
the SIMULATE command.
72
2ZEKESET
Zeke control statements, executed by the ZEKESET program, provide ways to:
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
SET Statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Statement Syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET ABENDTerminate a Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET ROUTECreating Large Block Letter Separator Pages . . . . . . . . . . . . . . . . . . . .
SET xCOMIssuing System and Zeke Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET VARIABLEDefining Zeke Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET COMMENTAdd Comment Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET CONDCODE or SET RETCODESet Condition or Return Codes . . . . . . . . . . .
SET GOTOBranch within Control Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET WAITSetting a Wait Interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
OPTION NOSUBVariable Substitution in ZEKESET . . . . . . . . . . . . . . . . . . . . . . . .
CDATEDate Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ON ERRORSyntax Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
75
79
79
81
82
84
84
86
87
87
88
95
73
Overview
You can control jobstream flow by using ZEKESET to:
Set variables
To use the program features, you execute the ZEKESET program in any job stream.
ZEKESET functions can be made conditional by using the IF clause of the SET statement.
Control statements follow the same syntax rules as Zeke batch utility input statements
(refer to "General Information" on page 2).
Execute the following program in any jobstream to execute the job control SET
statements.
//ZSET
JOB
,ZEKESET.SAMPLE,CLASS=A
//ZSAMPLE EXEC PGM=ZEKESET,PARM=SUBSYS=SSSI
//SYSPRINT DD
SYSOUT=A
//SYSIN
DD
*
SET ROUTE (SAMPLE ROUTING PAGE)
SET ABEND 4 IF $ABENDCODE GT 1
/*
The control statements are read from SYSIN and are listed along with informational and
error messages using the DD name SYSPRINT.
Note:
When Zeke submits JCL and encounters a PGM=ZEKESET on an EXEC statement, data
substitution is turned off until the next EXEC statement is encountered.
74
2 ZEKESET
SET Statement
The SET statement performs the following functions:
Any of the above functions can be made conditional by using the IF clause of the SET
statement.
Statement Syntax
SET statements follow the same syntax rules as the ZEKE batch utility input statements
(refer to "General Information" on page 2 for details).
Separate parameters and operands by either an equal sign (=) or by one or more
spaces.
Use either a comma or one or more spaces to separate items, but not both. A comma
followed by a space indicates end of statement to Zeke.
Precede comments with a comma and at least one space. For example,
SET VAR $LS EQ STEP1 ,
Note comma prior to this comment.
SET VAR $ABC EQ OK ,
Any Zeke statement can have a comment.
SET ROUTE (WORD1 WORD2 ,
A comma must precede the comment.
If you are running multiple versions of Zeke, the EXEC card must include the
subsystem name, if other than SSSI.
//Z1 EXEC
PGM=ZEKESET,PARM=SUBSYS=subsystem name
75
Comments and blank lines are supported. Any line with an asterisk as the first
non-space character is considered a comment line. Comment lines and blank lines
are printed, and are otherwise ignored. Comments can also be placed after a comma
on the same line as a ZEKESET input statement. For example:
CDATE OUTDATE EQ DATE
If desired, you can indent input lines and comment lines for better legibility.
EQual
LE
LT
Less Than
GT
Greater Than
GE
NE
Not Equal
DATA1 and DATA2 refer to the "Special Names" described in the following section.
These special names are referenced by several commands. IF clauses on SET statements
can check certain special names in addition to checking variables.
Examples
The following are sample conditional SET statements:
SET VAR $XYZ EQ NO IF $ABC EQ YES
SET PCOM 'R RDR,JOB1' IF PARTN EQ BG
SET VCOM 'CP DRAIN 00E' IF ZEKECPU EQ A
76
2 ZEKESET
Special Names
DATA1 and DATA2 of an IF clause can be any of the special names listed below;
however, the value for DATA1 must have the same data type as the value for DATA2.
For example, if the special name is numeric only for DATA1, then the special name must
be numeric only for DATA2. Special names cannot be used as the object of SET
statements.
Note:
The difference between special names and Zeke variables is that special names are
pre-defined to Zeke, while Zeke variables are user-defined and begin with a dollar sign
($).
Special Name
Data
Type Description
ABCODE
ABTYPE
A/N
COMRC
CPUID
A/N
77
Special Name
Data
Type Description
DATE
A/N
78
DATEJ
DAY
EVENT
HIGHCOND
JOBNAME
A/N
LASTCOND
The value of the condition code for the previous job step.
LASTPGM
A/N
LASTSTEP
A/N
THISPGM
A/N
THISSTEP
A/N
TIME
VERSION
ZEKECPU
A/N
$XXXXX
A/N
LITERAL'
A/N
2 ZEKESET
Special Name
Data
Type Description
NNN
XXX
A/N
Add the following parameter to print the same separator page multiple times.
Parameter
Description
COPY
Prints two copies of a routing page with the job name in large block letters.
Zeke variables and special names can be used as the operand of the ROUTE parameter.
When Zeke variables are used, the value of the variable is the word that is printed in large
block letters. When Zeke special names (ZEKECPU, COMRC, DATEJ, ABTYPE,
ABCODE, etc.) are used, the value of the special name is printed.
79
Character values are truncated to the first eight characters, and numeric values are always
considered to be eight-digit decimal numbers.
Large block letters are printed for the letters of the alphabet (A through Z), the digits zero
through nine (0 through 9), and the special characters $, *, ., -, and /. Other
special characters are treated as blanks.
Examples
The following are examples of the SET ROUTE format:
SET ROUTE DATACTL
Specifies one routing word.
SET ROUTE (DATA CONTROL)
Specifies two routing words.
SET ROUTE (Give to sys programmer)
Specifies four routing words.
SET ROUTE (Job name this step)
Specifies special names for two routing words.
SET ROUTE $VAR1
Specifies a variable for a routing word.
SET ROUTE (JOBNAME $VAR1 **SAVE**)
Specifies a combination of a special name, variable, and a literal.
SET ROUTE JOBNAME COPY 2
Prints two copies of a routing page with the job name in large block letters.
80
2 ZEKESET
Each statement must specify one of the following codes followed by a comma and
the command or response.
Code
Meaning
VM command/CP command
Zeke command
Examples
The following are examples of the SET command:
SET SCOM 'D A,L'
OS/390 DISPLAY ALL command.
SET SCOM '$PI I4'
JES2 pause of initiator.
SET VCOM 'MSG OPERATOR HI THERE'
Send a CP message to an operator.
SET ZCOM 'ZREFRESH JOB TSTA0500'
Zeke operator command.
SET ZCOM 'ZID ZMAP ZD AV'
System ID, initiator mapping, initiator availability.
SET VCOM 'M BOB HAVE A NICE DAY'
Send a VM message to a CMS user.
81
Retry 3 times
To check the CP return code after a set VCOM statement is issued, use the IF clause with
the special name COMRC. The value of COMRC is the CP return code provided to Zeke.
A numeric value (up to eight places) explicitly stated (any leading zeros are
truncated)
One of the special names supported by the IF clause of the SET statement, such as
COMRC
The variable assumes the format, numeric or character, of the value it is set to. When a
variable is set to a numeric value, it can be set to plus and/or minus another value. This is
done by using the operators (+) and (-) to add and subtract other values, respectively. A
space must precede and follow either symbol.
82
2 ZEKESET
Note:
You can use both a plus (+) and a minus (-) on the same statement. However, only one
plus and one minus can be used per statement. For example,
SET VAR $VAR1 EQ $A + $B - $C
This statement is valid.
SET VAR $VAR1 EQ $A + $B + $C
This statement is not valid.
Examples
The following are examples of the SET VARIABLE statement:
SET VAR $VARNAME EQ OPER1
Alphanumeric format.
SET VAR $VARNAME EQ OPER1 + OPER2 - OPER3
Numeric format.
SET VAR $XYZ EQ NO,
Sets variable to the character value NO'.
SET VAR $OPERFLAG EQ 'YES',
Sets variable to the character value YES'.
SET VAR $CTR1 EQ 400,
Sets variable to the numeric value 400.
SET VAR $CTR2 EQ $CTR1 + 1,
Adds 1 to the value of $CTR1 and sets $CTR2 to that numeric value.
SET VAR $CTR EQ $CTR + 1 ,
Increments the variable value by 1.
SET VAR $A1 EQ $A2 + $A3 - $A4
Adds values of $A2 and $A3, subtracts that sum from $A4, and sets $A1 to that
result.
SET VAR $B1 EQ $B1 + $B2 - 1,
Adds values of $B1 and $B2, subtracts 1 from that sum, and sets $B1 to that result.
SET VAR $KAM EQ EVENT ,
Sets variable $KAM to the event number of the event that set the variable.
83
84
2 ZEKESET
The SET CONDCODE or SET RETCODE statement can be used with the OS/390 job
control EXEC statement parameter COND=' to control the sequence of steps executed
within a jobstream. Execute ZEKESET at any point within a job and set the step condition
or return code to any value. Based on the current day, time, date, the CPU-ID, a variable
value, the return code of a previous step, an abend code, etc., test the new condition or
return code through the COND parameter of a subsequent EXEC statement to execute or
bypass the remaining steps as desired.
The following example enables a step return code completion of 12, if the variable is equal
to 6:
Another example:
85
The first job step executes the program ZEKESET. If the current day is Monday,
the step terminates with a return code of 99. Otherwise, the return code is zero.
If the current day is Monday, the second job step (S1) is not executed, because the
EXEC statement COND parameter specifies to bypass the step if the return code
from step CKDAY is equal to 99.
If the previous step (S2) has a return code greater than 1 and less than 53, the
ZEKESET step completes with a return code of 12.
If the previous step (S2) has a return code of 53, the ZEKESET step
terminates with a return code of zero. This return code determines whether the
final step, S3, is executed.
86
2 ZEKESET
Any of the special names previously described can be used in a GOTO statement IF clause.
For example,
You can use SET WAIT to allow a previous command time to process before issuing
another command.
//ZSET
JOB
//ZSAMPLE EXEC
//SYSPRINT DD
//SYSIN
DD
OPTION NOSUB
SET WAIT $VAR1
/*
,ZEKESET.SAMPLE,CLASS=A
PGM=ZEKESET,PARM=SUBSYS=ZDEV
SYSOUT=A
*
87
//ZSET
JOB
//ZSAMPLE EXEC
//SYSPRINT DD
//SYSIN
DD
OPTION SUB
SET WAIT $VAR1
/*
,ZEKESET.SAMPLE,CLASS=A
PGM=ZEKESET,PARM=SUBSYS=ZDEV
SYSOUT=A
*
Note:
The difference between using OPTION NOSUB and ZEKE-CTL NOSUB to turn off
variable substitution is that OPTION NOSUB turns it off at statement execution time,
while ZEKE-CTL NOSUB turns it off at variable substitution time, just prior to dispatch
of the event. Refer to your ASGZeke OS/390 Users Guide for more information on
ZEKE-CTL NOSUB.
CDATEDate Calculations
The CDATE function of ZEKESET performs date calculations using Zeke variables.
These variables can then be used for variable substitution. The variables are specified
without the $ so that if Zeke submits the ZEKESET job, it does not perform variable
substitution and overlay the variable names.
Syntax
CDate target = source operation
Parameters
88
Element
Description
target
= (equal)
source
The variable that contains the date to be modified. Only one source
variable is allowed. Dates cannot be added together.
2 ZEKESET
Element
Description
operation You can use an operator and modifier together, use the DAY.x parameter
in addition to the operator and modifier, or use the DAY.x parameter
alone:
operator A plus sign (+) or minus sign (-). This indicates whether
the value is to be added to or subtracted from the numeric
value specified.
modifier A numeric value (either a variable or an actual number)
followed by one of the following modifiers:
DAY.x
DAY
DAYS
WEEK
WEEKS
Number of weeks.
MONTH
MONTHS
Number of months.
YEAR
YEARS
Number of years.
89
Element
Description
CDATE OUTDATE EQ INDATE + 1 MONTH DAY.5
Source/Target Variables
The default date format is MM/DD/YYYY (or DD/MM/YYYY if using European
format). To override this format, specify the appropriate format in parentheses following
the variable name. For example, VAR1(YYYYDDD). See below for a list of formats. An
error occurs if you attempt to perform a CDATE operation on two variables with different
year formats (such as one with YY format and one with YYYY format).
The special name DATE can be used as a source variable and does not need any format
specification. The value is the current system date. If you have a source variable $DATE,
use the word VAR in front of it to distinguish it from the special name DATE.
If a proper format is not specified, or if a date cannot be determined, a syntax error results
and the action taken depends on the ON ERROR setting. See "ON ERRORSyntax
Errors" on page 95 for more information. Also refer to "ON EOMEnd-of-Month
Rounding" on page 95 for tips on avoiding syntax errors due to invalid end-of-month date
calculations.
If the source variable and target variable have the same name and format, omit the target
variable and the equal sign. The result is stored into the source variable.
All CDATE input must be valid and non-conflicting.
90
2 ZEKESET
Use the following character strings in any combination to specify the format of a target or
source variable.
YYYY
Four-digit year.
YY
MM
MONA
MON
DAYN
DAYA
DAY
DDD
DD
The user-specified format is scanned from left to right. The format elements are matched
in the order in which they appear in the list above. That is, DDD is matched before DD.
For example, if a format contains the string DDDDD, this string is interpreted as the
three-digit day of the year followed by the two-digit day of the month.
The CDATE function always stores an alphanumeric value in the target variable so that
leading zeroes are preserved.
The size and value of a source variable are expected to be consistent with the source format
specified; otherwise, an error results.
If an incomplete date format is specified, only modifiers relevant to the format are valid.
For example, for VAR1(YYYYMM), the only valid modifiers are MONTHS and YEARS.
The DAYS modifier is invalid. But in the case of VAR2(YYYYDDD), the MONTHS
modifier is valid because even though it is not named in the format, it is relevant to the
format.
If the source variable is formatted for only a day (DAY, DAYA, or DAYN), only DAY
modifiers are allowed. For example, if VAR1 contains the word TUESDAY, CDATE
VAR1(DAY) + 8 DAYS stores WEDNESDAY into VAR1.
91
If a variable contains both a complete date and a day value (such as VAR1(DAY MM/DD/YYYY)), the complete date is used for all calculations and any DAY values
come from the result of the complete date calculation. For example, if VAR1 contains
MONDAY - 12/27/2002, then CDATE VAR2(DAY) = VAR1(DAY - MM/DD/YYYY)
+ 2 DAYS + 1 YEAR stores FRIDAY into VAR2, not WEDNESDAY.
If a string in the format does not match any of the elements listed above, it is considered a
literal. A literal in the format for a source variable is expected to have an exact match in
that position in the source variable value; otherwise, an error results. A literal in a target
variable format is simply copied to the target variable value at the position where it was
encountered. This allows you to use characters such as spaces, dashes, slashes, commas,
etc. to separate date elements in the source and target. You can also use numerical digits
and alpha characters to manipulate the date value of the target.
For example,
VAR1(MM DD YYYY)
Separated by spaces.
VAR2(YYYY/DDD)
Separated by a slash.
VAR3(MM-DD-YYYY)
Separated by dashes.
VAR4(MON DD,YYYY)
Combination of spaces and commas.
VAR5(MM/01/YYYY)
Numerical manipulation of date.
VAR6(DDD20YYYY)
Numerical manipulation of date.
92
CDATE statements can have conditional IF clauses similar to the IF clause of the
SET statement. When the IF clause is true, Zeke processes the CDATE statement.
When the IF clause is false, the CDATE statement is bypassed.
All date operations are performed from left to right within the CDATE statement.
Treat all CDATE operations output as alphanumeric data for comparison purposes.
2 ZEKESET
93
Sample JCL
//STEP1
EXEC PGM=ZEKESET,PARM=SUBSYS=SSSI
//SYSPRINT DD
SYSOUT=*
//SYSIN
DD
*
CDATE
CURRMNTH(MM) EQ DATE
SET VAR $FISCALMTH EQ '12/04/2001' IF $CURRMNTH EQ '12'
/*
94
2 ZEKESET
ON EOMEnd-of-Month Rounding
The ON EOM command is used to specify how you want ZEKESET to deal with date
calculations in which the input or output date occurs at the end of a month. It establishes
the rounding settings when it is invoked, and those settings are in effect until another ON
EOM statement is encountered.
ON ERRORSyntax Errors
The ON ERROR ZEKESET statement specifies the action to take when syntax errors are
found in the input control statements supplied to ZEKESET.
The default is to immediately exit the ZEKESET program with a condition code of 4, 8,
or 12 depending on the type of error. The other options are to ignore the error or to set a
specified condition code.
The ON ERROR statement can be used more than once. The last encountered ON ERROR
statement is the one used if a syntax error is found.
Syntax
ON ERROR
IGNORE
RETCODE xxxx
CONCODE xxxx
ABEND
Parameters
Parameter
Description
IGNORE
Ignores the syntax errors and continues with the next ZEKESET
input statement.
RETCODE xxx
CONDCODE xxx Exits the ZEKESET program immediately with the specified
condition code. Up to 3 digits.
ABEND
95
Sample JCL
The ON ERROR IGNORE statement in the following example ignores the syntax errors
and continues with the next ZEKESET input statement.
//TLAZSETI
//
//STEP01
//STEPLIB
//
//SYSPRINT
//SYSIN
ON ERROR
SET ZCOM
SET ZCOM
/*
JOB (10039),'NAME',NOTIFY=TSTLAA,
MSGCLASS=X,MSGLEVEL=(1,1),CLASS=A
EXEC PGM=ZEKESET,PARM='SUBSYS=SSSI'
DD
DSN=ZEKE.R520A.SUP.LINKLIB,DISP=SHR
DD
DSN=OASIS.R240A.SUP.LINKLIB,DISP=SHR
DD
SYSOUT=*
DD
*
IGNORE
'XXX'
'ZD'
//TLAZSETR
//
//STEP01
//STEPLIB
//
//SYSPRINT
//SYSIN
ON ERROR
SET ZCOM
SET ZCOM
/*
JOB (10039),'NAME',NOTIFY=TSTLAA,
MSGCLASS=X,MSGLEVEL=(1,1),CLASS=A
EXEC PGM=ZEKESET,PARM='SUBSYS=SSSI'
DD
DSN=ZEKE.R520A.SUP.LINKLIB,DISP=SHR
DD
DSN=OASIS.R240A.SUP.LINKLIB,DISP=SHR
DD
SYSOUT=*
DD
*
RETCODE 020
'XXX'
'ZD'
//TLAZSETA
//
//STEP01
//STEPLIB
//
//SYSPRINT
//SYSIN
ON ERROR
SET ZCOM
SET ZCOM
/*
96
JOB (10039),'NAME',NOTIFY=TSTLAA,
MSGCLASS=X,MSGLEVEL=(1,1),CLASS=A
EXEC PGM=ZEKESET,PARM='SUBSYS=SSSI'
DD
DSN=ZEKE.R520A.SUP.LINKLIB,DISP=SHR
DD
DSN=OASIS.R240A.SUP.LINKLIB,DISP=SHR
DD
SYSOUT=*
DD
*
ABEND
'XXX'
'ZD'
2 ZEKESET
//TLAZSETC
//
//STEP01
//STEPLIB
//
//SYSPRINT
//SYSIN
ON ERROR
SET ZCOM
SET ZCOM
/*
JOB (10039),'NAME',NOTIFY=TSTLAA,
MSGCLASS=X,MSGLEVEL=(1,1),CLASS=A
EXEC PGM=ZEKESET,PARM='SUBSYS=SSSI'
DD
DSN=ZEKE.R520A.SUP.LINKLIB,DISP=SHR
DD
DSN=OASIS.R240A.SUP.LINKLIB,DISP=SHR
DD
SYSOUT=*
DD
*
CONDCODE 018
'XXX'
'ZD'
97
98
3Report Writer
The Report Writer facility is a function of the batch utility program. This chapter describes
the types of reports, the parameters for record selection, how to format the reports and how
to execute the facility.
Generating Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Output Reports to File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Report Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Report SequenceEvent and Plan Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Page BreaksEvent and Plan Listings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Line SpacingEvent and Plan Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Selecting FieldsEvent and Plan Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
104
104
106
107
107
99
Generating Reports
The LIST command generates Zeke reports. Many parameters can be used with the LIST
command to generate each report type. Only a few samples are shown in this procedure.
Note:
Security authorization is performed to ensure the user requesting the report has at least
READ access to the requested records. In order to generate a LIST PLAN report, the user
must be authorized for at least READ access to both the EMR and the SQR.
To generate a report
1
Create a jobstream that executes the ZEKEUTL procedure and include the desired
LIST commands. The ZEKEUTL procedure executes the Zeke program. The
following is a sample jobstream using the ZEKEUTL procedure.
Use the following LIST commands, depending upon the desired result:
Command
Description
Produce Event
Listing
100
3 Report Writer
Command
Description
Produce
Security Class
Listing
LIST OPERCLAS
Produce
Operator ID
Listing
LIST OPERRECS
Produce
Resource
Listing
LIST RESOURCE
To add a report title to the top of the report, use the TITLE parameter followed by
name of the report. If the title contains more than one word, the title must be
surrounded by quotation marks or parentheses. The title can be up to 60 characters,
and the keyword TITLE can be abbreviated TITL.
For example, to produce a report with the title SCHEDULE LISTING FOR
SYSTEM X BY USERID, use the following:
LIST PLAN TITLE SCHEDULE LISTING FOR SYSTEM X BY USERID
To change the line spacing from the default of single-spacing to alternative line
spacing, use one of the following parameters.
For example, to produce a double-spaced report for all events, use the following:
LIST EVENT SPACE2
To specify the sort sequence for the report, use the SEQUENCE parameter followed
by the desired keywords contained in a single set of parentheses. Valid keywords are
listed in "Report SequenceEvent and Plan Listings" on page 104
For example, to select SYSTEM A events and sequence by event number within
event type, use the following:
LIST EVENT SYS A SEQUENCE (TYPE)
101
To add page breaks that sort by sequence, specify PAGEBREAK with the same
SEQUENCE parameter followed by the desired keywords contained in a single set
of parentheses. Valid page break keywords are listed in "Page BreaksEvent and
Plan Listings" on page 106
For example, to produce an Event Listing of all events, sorted by event type within
the same system ID, and display every new event type on a new page, use the
following:
LIST EVENT SEQUENCE (SYSTEM TYPE) PAGE (TYPE)
To specify fields to be printed on the report, use the FIELDS parameter followed by
the desired keywords contained in a single set of parentheses. Valid FIELDS
keywords are listed in "Selecting FieldsEvent and Plan Listings" on page 107
For example, to an Event Listing of all events containing the event description field
and last date of last dispatch field, use the following:
LIST EVENT FIELDS (DESC DISPDATE)
102
Once you have completed your jobstream, execute the ZEKEUTL program to
generate the report.
3 Report Writer
The schedule queue record extractnot used for an Event Master Listing
The WHEN condition for the schedule queue record (LIST PLAN) or the lowest
version WHEN condition (LIST EVENT)
Create a jobstream using the LIST command with the OUTFILE parameter to write
selected records to a file. For example, to write a scheduled event named JOB200 to
a file, use the following:
LIST PLAN JOB JOB200 OUTFILE
To name the output file, specify the DD name in a single set of parentheses after the
OUTFILE parameter. For example, to write scheduled event JOB200 to an output
file called USRNAME, use the following:
LIST PLAN JOB JOB200 OUTFILE (USRNAME)
103
To override the DFSORT message from appearing in Zeke report output, use the
following DD card and SYSIN parameters:
//DFSPARM DD *
OPTION MSGDDN=SYSOUT
After you complete your jobstream, execute the ZEKEUTL procedure to generate
the file.
Report Formatting
A number of parameters are available to format your reports. You can select the sequence
of the information, control the page breaks and spacing, select additional information and
the fields to be printed.
Parameters
The SEQUENCE parameter is followed by the keywords, all contained within a single set
of parentheses. Up to five keywords can be specified. Specify major sort fields first.
104
Parameter
Description
SEQuence
Description
APPLICAT
By application ID
CALID
By calendar ID
DISPDATE
DISPPRI
By dispatching priority
3 Report Writer
Parameter
Description
DISPTIME
EARLY
By early time
ENAME
By event name
EVENT
By event number
GROupid
By group ID
HITDATE
JOBNAME
By jobname
LATE
By late time
SCHED
By schedule time
SELDATE
STATtime
SYSTEM
By owning system ID
TYPE
By event type
USERid
By user ID
VARiable
By variable name
VERsion
By version number
105
Parameters
The PAGEBREAK parameter is followed by the keywords, all contained within a single
set of parentheses.
Parameter
Description
PAGEbreak
Description
APPLICAT
Application ID
CALID
Calendar ID
DISPPR
Dispatching priority
EVENT
Event number
GROUPID
Group ID
HITDATE
Due date
SELDATE
Select date
SYSTEM
System ID
TYPE
Event type
USERID
User ID
Example:
LIST EVENTS SEQUENCE (SYSTEM TYPE) PAGE (TYPE)
106
3 Report Writer
SPACE3
Parameters
The FIELDS parameter is followed by the keywords, all contained within a single set of
parentheses. Each keyword represents a field on the event master or event schedule
records, or both. The record used depends on the LIST command (PLAN=SQRs;
EVENTS=EMRs).
Up to 132 characters can be printed on a line. When calculating line length, add two spaces
between fields. A single asterisk (*) indicates that this is information from the EMR. Two
asterisks (**) indicate that this is information from the Schedule Recordvalid only for
PLAN listing.
Parameter Description
FIELDs
Specifies the fields to be printed on the report. Use the following keywords
to specify the fields. Separate the keywords with a comma, and enclose all
the keywords in a set of parentheses.
LIST EVENTS FIELD=(APP,ENAME,PLAT,SYS,SCHED)
The Length field below indicates the maximum length of the output for each
keyword. For example, if you choose to print the event description
(DESCRIPT keyword) on the report, the output for that field will be 60 bytes
or less.
Keyword
Length
Description
APPlicat
Application ID
CALid
CONTrol
DESCript
60
Event description*
107
Parameter Description
108
DISPCount
DISPDate
DISPPrio
Dispatching priority
DISPTime
DRL
EARLytim
Early time
ENAme
12
Event name
EVent
Event number
EXCeptio
20
EXPire
FREQCalc
FREQUenc
GROupid
Group ID
HITdate
Schedule date**
JOBname
Jobname
LATEtime
Late time
LJOBname
30
MULTihit
MUSTend
NOTAfter
NWDAY
OPErok
3 Report Writer
Parameter Description
PLATform
RETain
SCHEdtim
Schedule time
SELdate
STATTime
STATUS
SYStem
TEXt
62
TEXT1
62
TIMes
TYPE
Event type
USErid
Event user ID
VERsion
AVGDur
Average duration*
CLAss
Class list
JCLsourc
17
JCL source*
Jobname
Jobname
PRIority
Job priority
TAPes
TARGet
In order to generate a LIST PLAN report, the user must be authorized for at least READ
access to both the EMR and SQR.
Parameters
All parameters have an AND relationship except for the Event Type parameters, which
have an OR relationship. If you use the Event Type parameter, the event must match all
criteria to be selected.
Parameter
Description
ABEnd
ACTive
110
ADDed
ALTEred
ALTNOTDur
ALTTimeok
ALTWhenok
3 Report Writer
Parameter
Description
APPL
CLass
Specifies the class that an event must have in its class list to be
selected. The class can be up to 2 characters. Assumes the JOB
parameter. If no value is entered, any job event with a class is
selected.
LIST EVENTS CLASS
The class is the class of the event, not the JCL class.
111
Parameter
Description
COMMent
Selects all work center events. All event types are selected if no
event type is specified. More than one event type can be entered on
a command line.
LIST EVENTS COMMENT
DATASPACE
DEACtivate
DOne
EARlytime
112
3 Report Writer
Parameter
Description
ENAme
113
Parameter
Description
EVTCal
Specifies one or more calendar IDs. Events with one of the listed
calendar IDs are selected. Up to 8 characters. If you do not know
the full calendar ID, enter the beginning characters of the calendar
ID or the letters you know with wildcard characters in the place of
the unknown characters. You can enter a ? (question mark) to
search for any single character or an * (asterisk) in any position to
search for all positions following it. If the operand is fewer than 8
characters, the comparison is made only for the number of
characters entered, including wildcards.
LIST PLAN EVTCAL ACCTGQ11
EXCLude
Specifies the events to exclude from the report. Any event number
listed is excluded even if within a selected range or specified with
the EVENTS parameter.
LIST EVENTS RANGE (100,200) EXCLUDE (104, 107,
108)
Report on events 100 through 200 except for events 104, 107,
and 108.
EXRange
Specifies the range of events to exclude from the report. Enter the
starting and ending event number and enclose in parentheses.
More than one range can be entered. A starting number without an
ending is assumed to go to the end of the database.
LIST EVENTS EXRANGE (10,20)
114
3 Report Writer
Parameter
Description
GROupid
Specifies the group ID to match. If you do not know the full group
ID, enter the beginning characters of the group ID or the letters you
know with wildcard characters in the place of the unknown
characters. You can enter a ? (question mark) to search for any
single character or an * (asterisk) in any position to search for all
positions following it. If the operand is fewer than 3 characters, the
comparison is made for as many characters as are entered.
LIST PLAN GROUP 001
Valid with Schedule Listing (PLAN) only. Selects events that are
currently on hold.
115
Parameter
Description
JOB
Specifies the jobs to match. If entered alone, selects all job events.
All event types are selected if no event type is specified. If you do
not know the jobname, enter the beginning characters of the
jobname or the letters you know with wildcard characters in the
place of unknown characters. You can enter a ? (question mark) to
search for any single character or an * (asterisk) in any position to
search for all positions following it. If the operand is fewer than 8
characters, the comparison is made for as many characters as
entered. More than one event type can be entered on a command
line.
LIST EVENTS JOB
LATETime
Prints the event description on the first line for each event. The
detailed event information is printed below the description.
LIST EVENTS LISTDESC
3 Report Writer
Parameter
Description
LISTDOc
LISTDSn
Prints the defined tape datasets and current volume serial numbers
for each event.
LISTEXit
Invokes user exit ZEKE02MX once for each event after all other
reporting for the event is done. Refer to your ASG-Zeke OS/390
Installation Guide for more information on the ZEKE02MX exit.
LISTJcl
Prints the JCL defined in the database. The JCL follows the
detailed event information.
LISTNotes
Prints the scratch pad information for each event and comment
lines for work centers.
LISTReply
LISTRESO
LISTText
LISTVols
117
Parameter
Description
LISTWhen
Selects all message events. All event types are selected if no event
type is specified. More than one event type can be entered on a
command line.
LIST EVENTS MSG
118
3 Report Writer
Parameter
Description
OCCURSDETAIL
PENDing
PLan
Produces reports using the schedule queue records. You can enter
one or more event numbers and use the RANGE, EXCLUDE, and
EXRANGE parameters to select specific jobs. For current day
schedule reports, schedule a LIST PLAN at the end of the day,
immediately before the schedule load (make the schedule load a
successor to the LIST PLAN job).
LIST PLAN
119
Parameter
Description
REAdy
Valid with Schedule Listing (PLAN) only. Selects events that are
ready to run (time and WHEN conditions are satisfied), but have
not been dispatched yet.
RECURring
Selects events that occur more than once daily (recurring events).
LIST EVENTS RECUR MSG
RESDETAIL
Selects all REXX events. All event types are selected if no event
type is specified. More than one event type can be entered on a
command line.
LIST EVENTS REXX
Selects all System command events. All event types are selected if
no event type is specified. More than one event type can be entered
on a command line.
LIST EVENTS SCOM
120
3 Report Writer
Parameter
Description
STOp
Select events with schedule times after 8:01 and before 16:00.
SYStems
Selects job events that require at least one tape drive prior to job
dispatch.
LIST EVENTS TAPE
List job events for system B that require at least one tape
drive.
TARGet
121
Parameter
Description
TITLe
TODay
USERid
Select from the scheduled queue records (PLAN) all the jobs
with user ID DATACTL1.
LIST EVENTS USER DATA*
3 Report Writer
Parameter
Description
LIST EVENTS JOB
WHENDETAIL (PAY01P18,PAY01P19,$VARXX)
Description
AEOE
AEOJ
AEOP
AEOS
AT
Remote prerequisites.
BOJ
Beginning of job
BOP
Beginning of program
DSN
Dataset name
EOE
EOG
EOJ
EOP
End of program
EOS
End of step
NOTJ
NOTP
VAR
Variable
WEOE
123
Parameter
Description
WEOG
WEOJ
XEOE
XEOJ
Example:
LIST EVENTS WHEN (VAR)
ZCOm
Selects all Zeke command events. All event types are selected if
no event type is specified. More than one event type can be entered
on a command line.
LIST EVENTS ZCOM
Sample JCL
The following JCL produces a sample LIST EVENTS report using the JOB,
LISTOCCURS and LISTWHEN parameters.
//REPORT1 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST EVENTS JOB LISTOCCURS LISTWHEN
/*
//
124
3 Report Writer
Sample Report
LIST EVENTS report using the JOB, LISTOCCURS, and LISTWHEN parameters.
ZEKE 5.20 Z5200A000 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
DATE 08/23/2001
110 JOB
112 JOB
113 JOB
114 JOB
115 JOB
116 JOB
00:00
0 OCCURS
00:00
0 OCCURS
00:00
0 OCCURS
00:00
0 OCCURS
0
WHEN
1
WHEN
00:00
0 OCCURS
00:00
0 OCCURS
00:00
0 OCCURS
00:00
0 OCCURS
00:00
0 OCCURS
00:00
0 OCCURS
THURSDAY
ZEKE EVENT MASTER RECORD LISTING
CALID
SYSTEM
A
PRD
(REQUEST)
A
PRD
(REQUEST)
A
PRD
(REQUEST)
A
PRD
(REQUEST)
(VAR $ABC EQ 10)
(VAR $AAA2 EQ 20)
A
PRD
(DAILY)
A
PRD
(DAILY)
A
PRD
(DAILY)
A
PRD
(DAILY)
A
PRD
(DAILY)
A
PRD
(REQUEST)
APP
GRP USERID
ID
EVENT NAME
JOB NAME
XXXXJOC
PRD1
PRD1
VARIABLE
TVSET
PRDSUB
PRDJOBV
08/16/2001 18:31
PRDJOBV
TVSET
08/16/2001 18:31
PRDJOB1
PAY1
PRDJOB2
PRDJOB2
PAY1
PRDJOB3
PRDJOB3
PRDJOB4
LAST
TIME
08/16/2001 12:26
PRDJOB1
PAY1
LAST
DATE
PRDJOB4
08/16/2001 18:31
10
125
//REPORT3 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST PLAN SYS PRD LISTNOTES LISTPAD LISTTEXT
/*
//
Sample Report
LIST PLAN report using the SYS, LISTNOTES, LISTPAD, and LISTTEXT parameters.
ZEKE 5.20 Z5200A000 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
SSSI
RUN 0041
DATE
08/23/2001
THURSDAY
ZEKE SCHEDULE OF EVENTS
CALID
3
0 WORK 00:00
A
COMMENT LINES : THIS IS A WORK CENTER EVENT
10
12
13
14
15
16
16
16
7
0
0
0
0
0
0
0
0
0
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
WORK
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
A
A
A
A
A
A
A
A
A
SYSTEM
APP
GRP
ID
USERID
EVENT NAME
PRD
WORKCTR
PRD
PRD
PRD
PRD
PRD
PRD
PRD
PRD
PRD
TVSET
PRDJOB1
PRDJOB2
PRDJOB3
PRDJOB4
PAY1
JOB NAME
TVSET
PRDJOB1
PRDJOB2
PRDJOB3
PRDJOB4
PRDDATEJ
PRDDATEJ
PRDDATEJ
IT MAY BE USED FOR LONG DESCRIPTIONS THAT COULD SPAN SEVERAL LINES.
NOTE DOC - THIS IS A NOTE
8
0 WORK 00:00
-
PRD
AP1
EVTAP1
PRD
AP2
EVTAP2
PRD
126
14
LAST
TIME
08/19/2001 08:53
MULTIVAR
LAST
DATE
00010000
00011000
00020000
08/09/2001 09:04
08/09/2001
08/28/2001
08/28/2001
08/28/2001
08/15/2001
09:04
18:18
18:18
18:18
07:48
3 Report Writer
//REPORT5 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST PLAN NOTDONE TITLE DAILY SCHEDULE OF EVENTS
SPACE2 FIELDS
(SCHED,EVENT,ENAME,JOBNAME,DESC,OPEROK,
AVGDUR) SEQUENCE (SCHED) LISTW LISTDOC
/*
//
127
Sample Report
LIST PLAN report sample using the NOTDONE, TITLE, SPACE2, FIELDS,
SEQUENCE, LISTW, and LISTDOC parameters.
ZEKE 5.20 Z520A000 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
SSSI
RUN 0040
DATE
08/23/2001
JOB NAME
THURSDAY
DAILY SCHEDULE OF EVENTS
DESCRIPTION OF EVENT
OPR AVGDUR
OK HH:MM:SS
7 MULTIVAR
MULTI VARIABLE WORK CENTER
NO
0
WHEN (?XVAR A1 EQ 10 AND ?XVAR A2 EQ 20 AND XVAR A3 EQ 30 AND XVAR A4 EQ 40)
00010000
00011000
00020000
8 EVTAP1
THIS IS AP1 EVENT
0
WHEN (?XVAR APPL1 EQ EVT1)
NO
9 EVTAP2
THIS IS AP2 EVENT
0
WHEN (?XVAR APPL1 EQ EVT2)
NO
10 TVSET
00:00
11
0
TVSET
WORK CENTER
WHEN (?XVAR A1 EQ 10)
NO
00:00:01
NO
17
MAAZJOB2 MATTS 2
NO
00:00:00
05:00
15 PRDJOB4
PRDJOB4
NO
00:00:00
06:00
14 PRDJOB3
PRDJOB3
NO
00:00:00
07:00
13 PRDJOB2
PRDJOB2
NO
00:00:00
08:00
12 PRDJOB1
PRDJOB1
NO
00:00:00
128
10
3 Report Writer
Syntax
LIST CALID
*
name
YEAR nnnn
CALSPEC
YEAR
CALUSER
CALSTD
Parameters
Use the following parameters to select the calendars:
Parameter
Description
name
CALUSER
CALSTD
YEAR
129
//REPORT4 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST CALID A
/*
//
Sample Report
ZEKE 5.20 Z520A000 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
LIST CALID A
Z02C8I REPORT SEQUENCE NUMBER 001 - RECORDS SELECTED=0000001
Z0214I ENTERING SORT PHASE
Z0215I ENTERING PRINT PHASE
YEAR: ****
** WORK DAYS **
MONDAY:
TUESDAY:
WEDNESDAY:
THURSDAY:
FRIDAY:
SATURDAY:
SUNDAY:
01/01/****
YES
YES
YES
YES
YES
NO
NO
07/04/****
12/31/****
130
12/25/****
DATE 08/23/2001
3 Report Writer
Syntax
LIST VARIABLE
CHAracter
LISTOld
NUMeric
TITLe title
variable name
Parameters
Use the following parameters to select the variables.
Parameter
Description
CHAracter
LISTOLd
NUMeric
131
Parameter
Description
TITLe
variable-name Selects the indicated variables. If no variables are listed, selects all
system variables defined in the catalog.
LIST VARIABLE
132
3 Report Writer
//REPORT6 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST VARIABLES TITLE CURRENT VARIABLES
/*
//
Sample Report
LIST VARIABLES report sample using the TITLE parameter.
ZEKE 5.20 Z520A000 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
DATE 08/23/2001
THURSDAY
CURRENT VARIABLES
ZEKE DATA-NAME
JOB/PGM NAME
$AAA1
$AAA2
$AAA3
$AAA4
$ABC
$DEF
08/25/01
08/25/01
08/25/01
08/25/01
08/23/01
07/16/01
OPERATOR
OPERATOR
OPERATOR
OPERATOR
PDOPER
PRD1
10:04:23
10:04:24
10:04:24
10:04:24
14:50:53
08:23:25
USR
USR
USR
USR
USR
USR
PR/SYSTEM
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
DATA-NAME VALUE
NUMERIC
NUMERIC
NUMERIC
NUMERIC
GHI
XYZ
VALUE
VALUE
VALUE
VALUE
=
=
=
=
10
20
30
40
133
//REPORT6 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST VAR LISTOLD
/*
//
Sample Report
LIST VARIABLES report sample using the LISTOLD parameter.
ZEKE 5.20 Z520A000 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
DATE 08/23/2001
THURSDAY
ZEKE DATA-NAME LISTING
ZEKE DATA-NAME
DATE SET
TIME SET
JOB/PGM NAME
$AAA1
PRIOR
$AAA2
PRIOR
$AAA3
PRIOR
$AAA4
PRIOR
$ABC
PRIOR
$DEF
PRIOR
07/25/2001 10:04:23
: :
08/25/2001 10:04:24
08/13/2001 09:12:10
08/25/2001 10:04:24
08/13/2001 09:12:11
08/25/2001 10:04:24
08/13/2001 09:12:12
08/23/2001 14:50:53
07/17/2001 10:23:28
07/16/2001 08:23:25
07/16/2001 08:23:20
OPERATOR USR
JOB
OPERATOR USR
OPERATOR USR
OPERATOR USR
OPERATOR USR
OPERATOR USR
OPERATOR USR
PDOPER
USR
PRD1
USR
PRD1
USR
PRD1
USR
VALUE
VALUE
VALUE
VALUE
VALUE
VALUE
134
PR/SYSTEM
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
TSO-PRD
DATA-NAME VALUE
NUMERIC
---- NO
NUMERIC
NUMERIC
NUMERIC
NUMERIC
NUMERIC
NUMERIC
GHI
DEF
XYZ
---- NO
VALUE = 10
PREVIOUS VALUE EXISTS ----VALUE = 20
VALUE = 20
VALUE = 30
VALUE = 30
VALUE = 40
VALUE = 40
3 Report Writer
Syntax
LIST OPERRECS
//REPORT8 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST OPERRECS
/*
//
135
Sample Report
ZEKE 5.20 Z520ADV6 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
SSSI
RUN 0117
LIST OPERRECS
Z02C8I REPORT SEQUENCE NUMBER 001 - RECORDS SELECTED=0000003
Z0214I ENTERING SORT PHASE
Z0215I ENTERING PRINT PHASE
ZEKE 5.20 Z520ADV6 X240A000
REPORT ZEKE02M-03 RUN 0117
Zcom
W
N
W
W
Class Id: A
Event
W
N
W
W
136
3 Report Writer
Syntax
LIST OPERCLAS
//REPORT7 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST OPERCLAS
/*
//
Sample Report
ZEKE 5.20 Z520ADV6 X240A000 - ZEKE UTILITY PROGRAM MAINTENANCE LISTING
SSSI
RUN 0117
LIST OPERCLAS
Z02C8I REPORT SEQUENCE NUMBER 002 - RECORDS SELECTED=0000002
Z0214I ENTERING SORT PHASE
Z0215I ENTERING PRINT PHASE
ZEKE 5.20 Z520ADV6 X240A000
REPORT ZEKE02M-03 RUN 0117
Y
Y
N
Y
Y
Zid
Zkill
Zmap
Zhold
Zok
Y
N
Y
Y
Y
Zreload
Zset
Zstatus
Zrelease
Zscan
Y
Y
Y
Y
Y
N
Y
N
N
Y
Zid
Zkill
Zmap
Zhold
Zok
Y
N
Y
Y
Y
Zreload
Zset
Zstatus
Zrelease
Zscan
Var- W
Y
Y
Y
N
Y
Rst- W
Zres Disp
Zres Alt
Zenable
Zrefresh
Zres Rel
Var- W
Y
Y
N
Y
Y
Y
Y
Y
Y
Y
Rst- W
Zres Disp
Zres Alt
Zenable
Zrefresh
Zres Rel
137
Syntax
LIST RESOURCE
//REPORT7 JOB
//STEP1 EXEC ZEKEUTL,P=SUBSYS=SSSI
//SYSIN
DD *
LIST RESOURCE
/*
//
Sample Report
ZEKE 5.20 Z520A000 X240A000
TIME 12:48:07
REPORT ZEKE02M-03 RUN 0148
005
PAGE
1
DATE 08/18/2000
Resource name
Instance
TAPEDRIVE
EDRESO
EDR1
EDR2
EDR2
EDR3
TAPE
EANRESOCLAY
ALPHA
TSO45
REG7
REG8
OPDESK
(GLOBAL)
TSO45
MEDA
TSO45
(GLOBAL)
(GLOBAL)
(GLOBAL)
(GLOBAL)
(GLOBAL)
TSO45
TSO45
12
138
TUESDAY
Maximum
Shared
0001
0100
0001
0001
0001
0001
9901
0001
0001
0001
0010
0010
SEQ #
Active?
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
4Operator Commands
This chapter describes the Zeke operator commands that can be entered from any OS/390
console or from the /ZCOM functions of the Zeke online facility. All Zeke operator
commands (with the exception of ZKILL) can also be issued from any primary command
line in the Zeke ISPF online facility.
Entering Operator Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Documentation Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Verifying Command Acceptance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entering Multiple Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
140
140
141
141
142
142
143
159
159
160
166
167
172
172
173
174
ZDISPLAY Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Event Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Variable Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Initiator Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Automatic Reply Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying System Pool Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Zeke Agents Identifying Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Remote Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Communication Records Information . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Database Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Displaying Tracing Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
174
176
181
182
183
184
184
185
185
186
186
139
Command Prefix
If you are running more than one Zeke, you must add an additional prefix to the Zeke
command to distinguish between systems. Use the CMDPREFX parameter in OASIS
options to add a prefix. Refer to the ASG-OASIS OS/390 Reference Guide for additional
information.
140
4 Operator Commands
Documentation Conventions
The following table describes the special conventions used within this chapter to flag
information in the operator command explanations. To learn how to format your operator
commands correctly, it is important that you understand how these text conventions are
used in this chapter.
UPPERCASE
lowercase
Command Abbreviations
Most Zeke operator commands and parameters are abbreviated. Command and parameter
abbreviations can be as few as the first 2 letters. The shortest form that is acceptable to
the system for each command is illustrated in the commands syntax diagram. Parameter
abbreviations are shown in the parameter description table following each commands
syntax diagram.
Example:
The syntax for the ZMAP command would be illustrated as follows:
ZMap
ALL
CLass
class-ID
The following parameters are valid with the ZMAP command. Notice that the ALL
parameter cannot be abbreviated, but the CLASS parameter can be abbreviated as CL.
Parameter
Description
none
ALL
Displays initiators running active Zeke jobs and non-Zeke jobs. Only jobs
that started after Zeke came up are listed.
ZMAP ALL
141
Parameter
Description
CLass
Command Syntax
Enter at least one space between a command and its first parameter.
ZHOLD SYSTEM
When you enter a value with a parameter, enter the value immediately following the
parameter. Separate the value and parameter with either one or more spaces, or an equal
sign.
ZDISPLAY JOB JOBNAME1
ZDISPLAY JOB=JOBNAME1
142
4 Operator Commands
When one or more events match the parameter selection criteria, the number of events
selected is displayed on the console, such as:
Z09141 NUMBER OF EVENTS SELECTED WAS 3.
Description
ALl
143
Parameter
Description
APPLication
Specifies the class an event must have in its class list to be selected.
Assumes the Job parameter.
ZD CLASS *
Selects jobs in the dispatch queue with any class specifed in their
class list.
ZD DQ CL A
144
4 Operator Commands
Parameter
Description
Note:
145
Parameter
Description
DQ
Selects events that are in the dispatch queue. To select other events,
enter SQ. If both DQ and SQ are omitted, both are assumed.
ZD DQ
146
4 Operator Commands
Parameter
Description
GRoupid
Display all jobs that start with PR and end with 0001.
ZD JOB P*U*0*1*
147
Parameter
Description
Selects all message events. More than one event type can be entered
on a command line.
ZD MSG
Selects REXX events. All event types are selected if no event type is
specified. More that one event type can be entered on a command
line. For example,
ZD REX
Selects all system command events. More than one event type can be
entered on a command line.
ZD SCO
148
4 Operator Commands
Parameter
Description
SQ
Selects events that are in the schedule queue and are not in the
dispatch queue. To select other events, enter DQ. If both DQ and SQ
are omitted, both are assumed.
ZD SQ,JOB
Select all events scheduled between noon and 1600 hours (4:00
PM).
149
Parameter
Description
USerid
Select any event that has a user ID that begins with OP.
ZD USER (ACC)
Select any event that has a user ID that begins with ACC.
Note:
Selects only VM command events. More than one event type can be
entered on a command line.
ZD VCOM
Delete only the SQR for schedule date January 1, 2000 for
version 2 of event 30.
If a version number is not specified, all versions of the event are
selected.
ZDEL EV 30
150
4 Operator Commands
Parameter
Description
WORKCenter
Selects only work center events. More than one event type can be
entered on a command line.
ZD WORKC
Selects only Zeke command events. More than one event type can be
entered on a command line.
ZD ZCOM
151
ZADD Command
The ZADD command creates a schedule queue record for an existing Event Master
Record. Use this command to add any type of event, including an on-request event, to the
schedule. (You cannot ZADD an event template.)
Refer to your ASG-Zeke OS/390 Users Guide for information on manually adding events
to the schedule and setting Zeke to schedule itself.
Syntax
ZADd
EName name
EVent number
JOB name
APPLication app-ID
GROupid group-ID
USERid user-ID
ENable
HOld
RDAte yyyyddd
RDAte 99999
RDAte SCHDT
AUto
FORCE
CURRplus hhmm
NEWUSER user-ID
REBUIld
REfresh
RERUN
DAte yyyyddd
DAte 99999
DAte SCHDT
NOMSG
RUN
PREView
VER version-num
Parameters
The ZADD command requires the EVENT parameter (specifies event number), the
ENAME parameter (specifies event name), or the JOB parameter (specifies jobname). The
other parameters are optional.
Parameter
Description
AUTO
Adds one to the number of dispatch times value if the schedule record
is active. The REFRESH and ENABLE parameters are assumed. This
parameter is not valid for a comment event.
ZADD EV 19 AUTO
152
4 Operator Commands
Parameter
Description
ZADD APPL ACCT
Adds events with the event name beginning with JOB and an
application ID beginning with ACCT to the schedule, provided
MultEn and MultAp allow the add.
Note:
When multiple matches are found, the parameter with the most
restrictive Mult(xx) generation option setting overrides the
specifications of the other parameters.
ALL
CURRplus
Updates the scheduled time on the event by adding the time specified
in this parameter to the current start time. If the current Sched time is
zero, the specified time is added to the system time and saved in the
Sched time field. Enter the amount of time you want to add to the
current system time to create the new schedule time of the job.
Specify the hour and minutes in a value between 0000 and 4800.
ZADD EVENT 123 CURRPLUS 0130
Changes the start time of event 123 to 1 hour and 30 minutes from
the current system time.
If the resulting start time is greater than 4800, the job is not added.
DAte
Parameter
Description
By issuing the ZADD command with a date value of 99999, you can
add an event with the schedule date of the earliest event in the
schedule that is dependent on the event being added.
ZADD EV 234 DATE 99999
Searches the schedule for the earliest event (the event with the
earliest schedule date) that has not been dispatched because it is
waiting on Event 234. Event 234 is then added with that schedule
date. If no events are waiting on Event 234, Event 234 is added
with the current system date as the schedule date.
If you issue a single ZADD command to add multiple events, a
schedule date is calculated for each event as it is added.
By issuing the ZADD command with a date value of SCHDT, a new
event can be added to the schedule with the same schedule date as the
event issuing the ZADD command.
If the ZADD...SCHDT command is issued from a ZCOM event, a
Z-type command in an SCOM event, or a SET ZCOM statement from
a ZEKESET utility program dispatched as a Zeke event, the new
event is added to the schedule with the same schedule date as the
event issuing the command. If the ZADD...SCHDT command is
issued from any other environment, the current system date is used as
the new events schedule date.
ENable
ENAMe
154
4 Operator Commands
Parameter
Description
ZADD ENAME TESTJOB00001
Adds events with the event name beginning with JOB and an
application ID beginning with ACCT to the schedule, provided
MultEn and MultAp allow the add.
Note:
When multiple jobs matches are found, the parameter with the most
restrictive Mult(xx) generation option setting overrides the
specifications of the other parameters.
EVent
Searches the database for the specified event numbers. Follow this
parameter with one or more event numbers. Enclose multiple event
numbers in parentheses and separate them with commas or spaces. Up
to 20 event numbers can be entered.
ZADD EV 19
ZADD EV (19,45,100)
FORCE
Parameter
Description
GROup
Adds one or more events with the specified group ID to the schedule.
The MULTGR generation option (refer to your ASG-Zeke OS/390
Users Guide) indicates the action to take when more than one event
matches the specified group ID.
ZADD GROUP OPR
JOB
When multiple jobs matches are found, the parameter with the most
restrictive Mult(xx) generation option setting overrides the
specifications of the other parameters.
NEWUSER
The new user ID to be associated with the SQR being created. If this
parameter is specified, the security call checks this new user ID for
ALTER level access to the SQR. If this parameter is not specified, the
security call checks the user ID specified in the EMR.
Once the SQR is created with a new user ID, all subsequent security
calls will use the NEWUSER value (in the SQR Userid field).
This parameter allows different versions of an SQR to be associated
with different user IDs.
ZADD EV (5,6,7) VER 33 NEWUSER ABC
PREView
156
4 Operator Commands
Parameter
Description
RDate
Searches the schedule for the event with the earliest run date that
has not been dispatched because it is waiting on event 234. Event
234 is then added with that run date. If no jobs are waiting on
event 234, it is added with the current system date as the run date.
If you issue a single ZADD command to add multiple events, a run
date is calculated for each event as it is added.
REBUIld
Recreates the schedule record. (If a schedule record does not exist,
this parameter is ignored.) This produces the same result as deleting
an SQR and re-adding it.
ZADD EV 19 REBUILD
157
Parameter
Description
REfresh
RERUN
RUN
USERid
Adds one of more events with the specified user ID to the schedule.
The MULTUS generation option (refer to your ASG-Zeke OS/390
Users Guide) indicates the action to take when more than one event
matches the specified user ID.
ZADD USER DEV
158
4 Operator Commands
ZALTER Command
The ZALTER command temporarily alters schedule record information, some
system-related features, and initiator availability. When changing event-related
information, at least one of the Global Event Selection parameters is required. See
"Global Event Selection Parameters" on page 143 for a listing.
Altered schedule record information does not modify the Event Master Record. Only the
information of a specific occurrence of an event is changed, its permanent information is
not altered.
ZAlter
global
CONDORMember name
CONDORPass password
CONDORVersion version
FName CMS-name
FType CMS-type
LIBRarian name
PANvalet name
PDSDd name
PDSMem name
ZEKEJcl
Parameters
Parameter
Description
CONDORMember
CONDORPass
Specifies the CMS file name that is retrieved when the event is
dispatched. The filename can be up to 8 characters in length.
FType
Specifies the CMS file type that is retrieved when the event is
dispatched.The file type can be up to 4 characters.
LIBRarian
159
Parameter
Description
PANvalet
PDSDd
PDSMem
ZA EV 14 PDSM JOBABC
ZEKEJcl
Syntax
ZAlter
global
CONtrol
YES
NO
NX
DURation hhmm
EArly hhmm
FReq hhmm
LAte hhmm
MUSTEnd hhmm
NOTAfter hhmm
SChed hhmm
DOne
Failure
SYNch
LOCAL
REMOTE
NEWTARG=netregid
NEWSysid systemid
NOTDUROk
RUN
TIMEOk
WHENOk
(class, ...)
PRiority nn
TApes nn
TImes nnn
NORERun
RERUN
NOTRig
TRIG
WHENAND condition
AT netregid
WHENOR condition
AT netregid
condition
160
DPRI nn
NEwclass
AT netregid
4 Operator Commands
Parameters
At least one of the Global Event Selection Parameters (starting on page 143) is required.
If you use ENAME, the parameter ALL is required.
Parameter
Description
AT
CONTrol
DOne
NO
NX
DPRI
DURation
EArly
Failure
Marks the event with a F/F (Forced Failure) status and triggers any
failure dependencies.
ZA EV 35 FAILURE
161
Parameter
Description
FReq
LAte
MUSTEnd
NEwclass
Changes the class list for a job event. If a value is not entered, the
event can run in any class. If one or more values are entered, the event
can only run as one of those classes.
ZA EV 46 NEWCL
ZA EV 46 NEWCL B
ZA EV 46 NE (F,V,Q,R,S,T)
NEWTARG
Changes the target information for all job events with jobnames
beginning with CER and target of AANAS400 to RMTSYS2.
Note:
You may not use the ZALTER command with NEWTARG keyword
NEWSysid
NORERun
NOTAFter
NOTDUROk
162
4 Operator Commands
Parameter
Description
NOTRig
Changes the job OPSYS priority. Specify a value between 1 and 15.
ZA JOB *AR PRI 4
RERUN
RUN
SChed
SYNch
Parameter
Description
REMOTE Use this keyword when the Zeke Agent copy of the
schedule record is out-of-date, as indicated by STALEA in
the DL Status field in Schedule View.
ZALTER JOBA SYNCH=REMOTE
TIMEOk
TImes
TRIG
WHENAND
164
4 Operator Commands
Parameter
Description
WHENOk
If there are existing WHEN conditions, you must add any additional
WHEN conditions before issuing a WHENOK. When you issue a
ZALTER WHENOK, Zeke will not recognize subsequently added
WHEN conditions.
ZA EV 1 WHENOK
Satisfy the EOJ JOB1 WHEN condition for event 5. Any other
WHEN conditions for event 5 are not affected.
ZA JOB *PAY WHENOK VAR $GO
Satisfy the WHEN condition for the variable $GO for all job
events whose jobnames begin with PAY. The value of $GO is not
changed.
ZALTER EV 1 WHENOK (EOJ JOBB AT SYSB)
Satisfy the EOJ JOBB WHEN condition for event 1 on the remote
system SYSB.
ZALTER EV 5 VER 2 WHENOK (EOJ JOBA VER 2)
165
Parameter
Description
WHENOR
ZAlter
HOLDCms
NOMSG
SMF
Parameters
Parameter
Description
HOLDCms
Turns off messages to the console and places a hold on any events that
would have generated this message. Otherwise, messages appear on the
operator console if the Zeke1 machine stops processing JCL requests.
ZA HOLDCMS
NOMSG
SMF
This parameter toggles on and off the trace messages when Zeke calls the
SMF exits.
ZA SMF
166
4 Operator Commands
SyntaxParameters
ZAlter
IN init-ID
Description
AVailable
167
ZDELETE Command
The ZDELETE command deletes variables from the Zeke database or deletes schedule
queue records from the schedule, depending on the parameters used.
Deleted variables are added to the system again if used in a ZEKESET SET VAR
statement, or in the ZSET operator command, because Zeke variables are added when first
used.
After a schedule queue record has been deleted, a new schedule queue record for the same
event can be added via the ZADD command and any new information in the Event Master
Record for that event is reflected in the added schedule queue record.
Syntax
ZDELete
EName name
EVent number
JOB name
APPLication app-ID
GROupid group-ID
USERid user-ID
VAriable var-name
DAte yyyyddd
FORCE
PREView
ALL
VER number
Parameters
Use the following parameters with the ZDELETE command:
Parameter
Description
APPLication Deletes the event or the selection of events that have the specified
application ID. If you do not know the full application ID, enter the
beginning characters of the application ID or the letters you know
with wildcard characters in the place of the unknown characters. You
can enter a ? (question mark) to search for any single character or an
* (asterisk) in any position to search for all positions following it.
ZDEL APPL PAY
Deletes the first event with the application ID of PAY from the
schedule.
168
4 Operator Commands
Parameter
Description
DAte
EVent
Searches the catalog for the specified event name. If you do not know
the event name, enter the beginning characters of the event name or
the letters you know with wildcard characters in the place of the
unknown characters. You can enter a ? (question mark) to search for
any single character. If the operand is less than eight characters, the
comparison is made for as many characters as entered.
ZDEL ENAME EVNTNAM1
Deletes the first event name beginning with the character string
EVNTNAM and any letter in position 8 from the schedule.
FORCE
169
Parameter
Description
GROup
Deletes the event or selection of events that have the specified group
ID. If you do not know the full group ID, enter the beginning
characters of the group ID or the letters you know with wildcard
characters in the place of the unknown characters. You can enter a ?
(question mark) to search for any single character or an * (asterisk) in
any position to search for all positions leading or following it.
ZDEL GROUP OPR
Deletes the first event with the group ID of OPR from the
schedule
ZDEL GROUP O?R
Deletes the first event with the group ID beginning with OP from
the schedule.
JOB
Searches for events with the specified jobname. If you do not know
the jobname, enter the beginning characters of the jobname or the
letters you know with wildcard characters in the place of the unknown
characters. You can enter a ? (question mark) to search for any single
character or an * (asterisk) in any position to search for all positions
following it.
ZDEL JOB TESTJOB1
PREView
Produces a list of events that would be deleted from the schedule if the
command string was submitted without the Preview parameter.
ZDEL GROUP OPR PREVIEW
170
4 Operator Commands
Parameter
Description
USERid
Searches for scheduled events with the specified user ID. If you do not
know the full user ID, enter the beginning characters of the user ID or
the letters you know with wildcard characters in the place of the
unknown characters. You can enter a ? (question mark) to search for
any single character or an * (asterisk) in any position to search for all
positions leading or following it.
ZDEL USER DEV
Deletes the first event with the user ID of DEV from the schedule.
ZDEL USER D?V
Deletes the first event with the user ID beginning with EV from
the schedule.
VAriable
Delete only the SQR for schedule date January 1, 2000 for
version 2 of event 30.
171
ZDISABLE Command
The ZDISABLE command disables selected events or automatic replies. A display of
done events includes disabled events, which are noted on the screen. Disabled events are
deleted from the schedule, and dropped at the same time other completed events are
dropped (typically when the next day's schedule update is processed).
Refer to your ASG-Zeke OS/390 Users Guide for more information on disabling auto
replies.
Syntax
ZDISAble
global
Parameters
Use any of the Global Event Selection Parameters (starting on page 143) with the
ZDISABLE command.
Examples
The following are examples of using the ZDISABLE command and some of the Global
Event Selection parameters:
ZDISABLE EV 56
Disable the schedule record for event 56.
ZDISA EV 56 DA 2001001
Disable the schedule record for event 56 that is dated January 1, 2001.
ZDISA JOB *PR DA 2001001
Disable all job events with a jobname beginning with PR for schedule date January
1, 2001. These are the prior days jobs that are being removed from the schedule
manually.
Note:
The ZDISABLE command prevents WHEN conditions referring to that event from being
satisfied.
172
4 Operator Commands
Syntax
ZDISAble
REPly
EVent num
INITiator init-ID
JOBname name
Parameters
Use the following parameters with the ZDISABLE command to disable automatic
replies:
Parameter
Description
EVent
Specifies the event number for which the auto reply is to be disabled.
The auto reply can only be disabled before the event is dispatched.
JOBname
INITiator
If the event is running, you must disable the auto replies for that
initiator/partition. Enter the initiator ID with the REPLY and INIT
parameters.
ZDISA REP INIT T3
173
Syntax
ZDISAble
VAULT
Parameters
Use the following parameter with the ZDISABLE command to disable electronic
vaulting:
Parameter
Description
VAULT
ZDISPLAY Command
The ZDISPLAY command displays the following types of requested information:
174
The times that initiators are considered available, along with status information
Tracing calls to the schedule and variable monitors, and Zekes security routine
Listing event predecessor and event successor information for an event with other
events dependent upon it and for an event that is dependent upon others
4 Operator Commands
Unless one of the following parameters is entered, Zeke assumes the ZDISPLAY request
is for event information.
Display Type
Variable
Initiator Availability
Auto Replies
System Pool
Communications
Records
Remote Prerequisite
Information
Variable Monitor
Schedule Monitor
Zeke Security
Monitor
175
Syntax
ZDisplay
global
ABend
ACTive
DONE
FRee
HOld
LAte
NEEDOk
PEnding
RECurring
RESOurce
TARGet=value
STATus
TApes
WAit
WHendetail
XRef
COM
DEsc
DLStatus
INfo
JCLD event-name
NOte
STimes
ACTIVE
DISpatched
FAIL
QUEued
SCHeduled
SUCcess
var-name
jobname
program
Parameters
To display event information, you can use both the event parameters as described in the
following table or the Global Event Selection Parameters (starting on page 143).
Parameter
176
Description
ABend
ACTive
COM
Displays the active Zeke systems that are sharing the database. The
COM parameter is valid only in multi-CPU environments.
DEsc
DLStatus
4 Operator Commands
Parameter
DOne
Description
Displays the event name, application, group, and user ID. Display
Format 4 is used (message Z0926I).
JCLD
Parameter
NEEDOk
Description
NOte
PEnding
178
4 Operator Commands
Parameter
STATus
Description
DISpatched
FAIl
QUEued
SCHeduled
SUCcess
Displays the values for each of the event's defined times: Early,
Schedule, Late, Mustend, Notafter, and Duration.
TApes
Selects job events that use tape drives. The JOB parameter is
assumed.
ZD TAPES
Select all job events that use tapes and are late.
WAit
Selects events in the dispatch queue and uses Display Format 3. The
reason each event is waiting in the dispatch queue is displayed next to
each event.
ZD WAIT
Select all job events in the dispatch queue and show the reason
each is waiting.
179
Parameter
WHendetail
Description
XRef
180
4 Operator Commands
Syntax
ZDisplay
VAriable $var-name
ALL
Parameters
The following parameters, when used with the ZDISPLAY command, display the value
of a Zeke variable, along with some other related information.
Parameter
Description
VAriable
Specifies the name of the Zeke variable to display. The Zeke variable
must begin with a dollar sign ($) and can be from 2 to 16 characters.
ZD VAR $XYZ
Displays the value of the Zeke variable and some status information.
Must be used with the VARIABLE parameter.
ZD VAR $ABC ALL
181
Syntax
ZDisplay
IN init-ID
AVailable
DAY n
Parameters
Use the following parameters of the ZDISPLAY command to display this information.
Parameter
Description
AVailable
Display today's times and classes for all initiators. If you are
using JES3 or generated Zeke with the option Dispsel=NO, the
ZDISPLAY AVAILABLE command is not valid.
INitiator
182
4 Operator Commands
Syntax
ZDisplay
REPly
JOBname name
INITiator init-ID
Parameters
Use the following parameters of the ZDISPLAY command to display this information.
Parameter
Description
JOBname
Specifies the job event the messages and auto replies are to be
displayed for.
ZD JOB TESTXYZ REPLY
Display replies for initiator T3. Issue this command while the job
is running and waiting for a reply.
REPly
183
Syntax
ZDisplay
POOLid pool-ID
Parameter
Use the following parameter of the ZDISPLAY command to display this information.
Parameter
Description
POOLid
Syntax
ZDisplay
DOWnload
Parameter
Use the following parameter of the ZDISPLAY command to display this information.
184
Parameter
Description
DOWnload
4 Operator Commands
Syntax
ZDisplay
REMDepn
Parameter
Use the following parameter of the ZDISPLAY command to display this information.
Parameter
Description
REMDepn
Syntax
ZDisplay
COM
Parameter
Use the following parameters of the ZDISPLAY command to display this information.
Parameter
Description
COM
185
If the Multsys generation option is set to N and there is only one Zeke active on the
database, the following message is displayed in response to the ZD COM command:
Z0988I
Note:
Syntax
ZDisplay
CATALOG
Parameter
Use the following parameter of the ZDISPLAY command to display this information.
Parameter
Description
CATALOG
186
4 Operator Commands
Syntax
ZDisplay
DATAname
JCLExit
JCLWto
SChd
SEC
TRACE
UCBScan
ALL
ENd
Error
OFf
ALL
ENd
OFf
ALL
ENd
OFf
ALL
ENd
Error
NOCOMm
OFf
ALL
ON
OFf
ALL
ON
OFf
ALL
ON
OFf
Parameters
Use the following parameters of the ZDISPLAY command to display this information.
Parameter
DATAname
Description
ENd
ERRor
187
Parameter
SChd
Description
ENd
ERRor
OFf
TRACE DOWNload
188
ALL
ON
OFF
OFF
4 Operator Commands
Syntax
ZDisplay
PREdecessor
SUccessor
JOb jobname
EVent number
DAte yyyyddd
LEVel number
VERsion number
Parameters
Use the following parameters of the ZDISPLAY command to display this information.
Parameter
Description
PREdecessor Displays the events that the specified event is dependent on.
ZD PRE JO JOB1
Displays the events that are dependent on or are a dependency for the
specified event number.
JOb
Displays the events that are dependent on or are a dependency for the
specified jobname.
189
Parameter
Description
DAte
Displays the event with the earliest schedule date that has not
been dispatched because it is waiting on event 234.
Note:
You can display both predecessor and successor events by specifying both, as in the
following example:
ZD PRE SUC JOB PAYROLL1
Display all jobs that PAYROLL1 is dependent upon and all jobs dependent upon
PAYROLL1.
190
4 Operator Commands
ZDISPLAY Formats
There are several display formats. The format type is determined by the parameters
entered with the ZDISPLAY command. Display Format 1 (see "Main Display Format
Format 1a" on page 192) is used unless one of the following parameters is entered.
Display Type
Format Type
JOB
(with no other
type specified)
WAIT
INFO
DONE
DONE JOB
AVAILABLE
PRED/SUCC
HOLD
DLSTATUS
DOWNLOAD
Each display format has column headings, which are described with each display format
sample. Events are displayed in sequence starting with the earliest schedule time. An
asterisk (*) to the right of the event number indicates that the schedule entry is in the
dispatch queue, ready for dispatching. An asterisk (*) to the left of a jobname, program, or
variable indicates that the WHEN condition is satisfied. The following symbols are
displayed down the far right column of each screen.
Symbol
Meaning
blank
Symbol
Meaning
WHEN conditions for the event are satisfied, but the event is waiting to be
time-satisfied.
This symbol appears to the left of a weak WHEN condition. This indicates the
WHEN condition is satisfied because the dependency is not in the schedule.
RDATE
2000325
2000325
2000325
2000329
2000329
2000328
2000329
2000332
2000332
VERS
0001
0003
0004
0001
0001
0001
0002
0001
0001
TYPE
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB/EVT NAME
EANTST03
EANTST03
EANTST03
CER6K1
CERJ14
EANTST03
CER6K1
EANTST03
EANTST04
DP
50
50
50
50
50
50
50
50
50
Description
Z0922I
Message ID for the column heading. This column displays the event
numbers.
DATE
RDATE
Run date.
VERS
TYPE
Event type.
192
DP
Dispatch priority.
SCHED
4 Operator Commands
Heading
Description
FREQ
CNT
STATUS
{unlabeled}
Symbol
Meaning
blank
The last column indicates whether the job was executed at a remote
location and lists the name of the remote location as it appears in the
Target field on the EMR screen.
193
CNT
STATUS
1 * SUCC 15:46
EANTST03
50 00:00
1 * SUCC 14:06
EANTST03
50 00:00
1 * SUCC 14:09
CER6K1
50 00:00
1 * SUCC 16:12
CERJ14
50 00:00
1 * HOLD
EANTST03
CER6K1
50 00:00
1 * PEND 16:17
Display NOTEFormat 1c
The following screen is used if the NOTE parameter is entered. The screen format is the
same as the main display format except the existing Note Documentation is displayed for
each event.
Z0922I DATE
RDATE
VERS TYPE JOB/EVT NAME DP SCHED FREQ CNT
000014 2000329 2000329 0001 JOB CERJ14
50 00:00
1
000003 2000328 2000328 0001 JOB EANTST03
50 00:00 00:01 123
NOTE: FROM THE DOCUMENTATION OPTION, YOU CAN DISPLAY EXISTING
DOCUMENTATION FOR AN EVENT.
YOU CAN MAINTAIN SCRATCH PAD, NOTE, TEXT, OR DATASET
DOCUMENTATION IF DOCUMENTATION ALREADY EXISTS FOR THIS
EVENT.
000004*2000332 2000332 0001 JOB EANTST04
50 00:00
1
000013 2000332 2000332 0001 JOB TESTJOB1
50 00:00
1
NOTE: THIS IS A NOTE FOR EVENT NUMBER ONE.
THIS NOTE CAN BE UP TO
SIX LINES IN LENGTH.
FREE-FORM INFORMATION
CAN BE KEYED IN DESCRIBING
JOB REQUIREMENTS.
000009 2000332 2000332 0001 JOB CERJ9
50 00:00
1
NOTE: EVENT 8 REQUIRES
THE PAYROLL EDIT
TO BE IN BALANCE.
000014 2000332 2000332 0001 JOB CERJ14
50 00:00
1
194
*
T
STATUS
HOLD
*
*
HOLD NET
HOLD NET
4 Operator Commands
Display WHENDETAILFormat 1d
The following screen is used if the WHENDETAIL parameter is entered. The screen
format is the same as the main display format except for the addition of the version of the
WHEN clause that was used for the scheduled event.
Z0922I DATE
RDATE VERS TYPE JOB/EVT NAME DP SCHED FREQ CNT
STATUS
000014 2000329 2000329 0001 JOB CERJ14
50 00:00
1 * HOLD
0 WHEN: (*EOJ CERJ3 AT ZTEAM6K1)
000003 2000328 2000328 0001 JOB EANTST03
50 00:00 00:01 123 T
0 WHEN: (EOJ JOBA AT A)
000003 2000332 2000332 0001 JOB EANTST03
50 00:00
1 T
0 WHEN: (EOJ JOBA AT A)
000008 2000332 2000332 0001 JOB EANTST08
50 00:00
1 T
1 WHEN: (EOJ EANTST04)
000014 2000332 2000332 0001 JOB CERJ14
50 00:00
1 T
0 WHEN: (EOJ CERJ3 AT ZTEAM6K1)
000015 2000332 2000332 0001 JOB CERJ15
50 00:00
1 T
0 WHEN: (EOJ TESTJOB1 AT ZTEM6K1)
Display XREFFormat 1e
The following screen is used if the XREF parameter is entered.
Z0922I DATE
RDATE
VERS TYPE JOB/EVT NAME
000003 2000328 2000328 0001 JOB EANTST03
0 WHEN: (EOJ JOBA AT A)
000003 2000332 2000332 0002 JOB EANTST03
0 WHEN: (EOJ JOBA AT A)
000034 2000336 2000336 0001 JOB KAMTST03
0 WHEN: (EOJ JOBA AT A AND WEOJ JOBB)
1 T
50 00:00
1 T
STATUS
Display JOBFormat 2
The following screen is used if the JOB parameter is entered.
Z0923I DATE
000014 2000329
000003 2000328
000003 2000332
000004*2000332
000013 2000332
000008 2000332
000009 2000332
000014 2000332
000015 2000332
000013 2000332
VERS
0001
0001
0001
0001
0001
0001
0001
0001
0001
0002
JOB NAME
CERJ14
EANTST03
EANTST03
EANTST04
TESTJOB1
EANTST08
CERJ9
CERJ14
CERJ15
TESTJOB1
SCHED CLASS
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
Description
Z0923I
Message ID for the column heading. This column displays the event
numbers.
195
Heading
Description
DATE
VERS
CLASS
DPR
TPS
VMEM
STATUS
JOBID
TARGET
NETREGID of the remote system the JCL will execute on (if applicable).
If the job was submitted to run locally, this field is blank.
Display WAITFormat 3
The following screen is used if the WAIT parameter is entered.
Z0924I DATE
000014 2000329
000004*2000332
000013 2000332
000009 2000332
000013 2000332
196
VERS
0001
0001
0001
0001
0002
TYPE
JOB
JOB
JOB
JOB
JOB
JOB NAME
CERJ14
EANTST04
TESTJOB1
CERJ9
TESTJOB1
STAT
HOLD
HOLD
HOLD
HOLD
HOLD
4 Operator Commands
Description
Z0924I
Message ID for the column heading. This column displays the event
numbers.
DATE
VERS
TYPE
Event type.
CLASS
DPRI
TPS
REASON
Delay Dispatch
Dispatch JCL Error Zeke encountered an error reading the JCL while
attempting to dispatch the event. The event was
placed on hold.
DSN Trigger Hold
Event was
ZREFRESHed
Heading
Description
Need Initiator
Need Operok
Need Resources
Network Error Hold The event was placed on hold due to a networking
error.
198
New DQT-entry
No Com-entry
No Disp-com
No Disp-load
Notdur Pgm/Job
Operator Hold
(ZHOLD)
4 Operator Commands
Heading
STAT
Description
Posid=N,
Cntrl=Y,
Remote Job
Security Violation
System on Hold
VERS
0001
0001
0003
0001
0001
0001
0001
0001
0001
0002
SCHED
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
00:00
TYPE
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB/EVT-NAME
DEP FROM 6K1
EANTST03
EANTST03
EANTST04
TO-TOBIE-NT
EANT
TO-ZCAL HP
DEP FROM 6K1
CERTST
TO-TOBIE-NT
APPL
CER
EAN
EAN
EAN
CER
EAN
CER
CER
CER
CER
GRP
CER
EAN
EAN
EAN
CER
EAN
CER
CER
CER
CER
USERID
*
T
T
*
carlr
*
EAN
T
richards *
T
T
carlr
*
HOLD
HOLD NET
HOLD NET
HOLD NET
Description
Z0926I
DATE
VERS
SCHED
Heading
Description
TYPE
Event type.
JOB/EVT-NAME
APPL
Application ID.
GRP
Group ID.
USERID
User ID.
{unlabeled}
{unlabeled}
DATE
2000325
2000325
2000325
2000329
2000329
2000332
2000332
2000332
2000332
2000332
VERS
0001
0003
0004
0001
0002
0001
0001
0001
0001
0002
TYPE
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB
JOB/EVT NAME
EANTST03
EANTST03
EANTST03
CER6K1
CER6K1
CERJ6
TESTJOB1
CERJ9
CER6K1
TESTJOB1
CCODE
C0000
FLUSH
C0000
C0000
SCHED FREQ
00:00
00:00
00:00
00:00
00:00
C0000 00:00
00:00
00:00
C0000 00:00
00:00
CNT
1 *
1 *
1 *
1 *
1 *
1 *
1 *
1 *
1 *
1 *
STATUS
SUCC 15:46
FAIL 14:06
SUCC 14:09
SUCC 16:12
PEND 16:17
SUCC 00:07
HOLD NET
HOLD NET
SUCC 00:09
HOLD NET
R
R
R
R
R
R
Description
Z0969I
Message ID for the column heading. This column displays the event
numbers.
DATE
VERS
TYPE
Event type.
4 Operator Commands
Heading
Description
SCHED
FREQ
CNT
STATUS
F/OK
ACTV
FAIL
SUCC
FBOK
F/S
PEND
201
DATE
2000325
2000325
2000325
2000329
2000329
2000332
2000332
2000332
2000332
2000332
VERS
0001
0003
0004
0001
0002
0001
0001
0001
0001
0002
JOB NAME
EANTST03
EANTST03
EANTST03
CER6K1
CER6K1
CERJ6
TESTJOB1
CERJ9
CER6K1
TESTJOB1
CCODE
C0000
S806
C0000
C0003
FLUSH
C0000
C0000
C0000
C0004
C0000
15:46
14:06
14:09
16:12
16:17
00:07
16:17
16:18
00:09
16:19
R JOBID
JOB03708
JOB03667
JOB03668
JOB04499
202
Heading
Description
Z0970I
Message ID for the column heading. This column displays the event
numbers.
DATE
VERS
JOB NAME
Jobname.
SCHED
CLASS
DPRI
CCODE
{untitled}
JOBID
JES job ID (if the job has gone ACTV on the system).
4 Operator Commands
Description
Z0930I
ID
Initiator ID.
CLASSES
START/STOP
TIME RANGES
203
Description
LVL
JOB/EVT NAME
TYPE
Event type.
EVENT
Event number.
DATE
VERS
WHEN
TRIGGER NAME Jobname or event that triggers the WHEN condition for the
jobname or event listed.
204
4 Operator Commands
Heading
Description
T-VER
STATUS
AVDUR
{unlabeled}
If two or more events have the same name and one of the events
triggers another, then both events with the same name will appear
with the word DUP beside each one in the right margin of the
screen.
DATE
2000329
2000332
2000332
2000332
RDATE
2000329
2000332
2000332
2000332
VERS
0001
0001
0001
0002
TYPE
JOB
JOB
JOB
JOB
JOB/EVT NAME
CERJ14
TESTJOB1
CERJ9
TESTJOB1
DP
50
50
50
50
SCHED FREQ
00:00
00:00
00:00
00:00
CNT
1
1
1
1
*
*
*
*
STATUS
HOLD
HOLD NET
HOLD NET
HOLD NET
Description
Z0922I
Message ID for the column heading. This column displays the event
numbers.
DATE
RDATE
Run date.
VERS
TYPE
Event type.
Dispatching priority.
SCHED
FREQ
CNT
STATUS
The last column displays the HOLD status and reason codes. The
statuses are:
205
Heading
{unlabeled}
206
Description
DNPL
DSNT
INTR
NET
OPER
PSID
REXX
RFSH
SEC
SJCL
4 Operator Commands
BROWSE
Row 1 of 6
Scroll ==> PAGE
Description
Z09D1I
NETREGID
STATUS
NTSYNC
IDLE
DLDING
WAIT
OOSYNC
INACT
UNSUPP
DESCRIPTION
(deleted)
This Zeke Agent has been removed from the download agent table
in the Zeke database, but might still have work in progress.
207
EVENT NAME
TESTJOB1
TARGET
NTAGENT
STATUS
NOTSNT
TESTJOB2
NTAGENT
NOTSNT
TESTJOB3
NTAGENT
NOTSNT
208
Heading
Description
Z09D5I
DATE
VERSN
TYPE
EVENT NAME
Event name.
TARGET
STATUS
NOSUPP
ERROR
SENT
PENDING
STALEZ
STALEA
4 Operator Commands
Heading
Description
??xx??
ZENABLE Command
The ZENABLE command reactivates or enables one or more events that were previously
disabled using the ZDISABLE command. Can also reactivate the automatic reply
elements for an event for which automatic replies were disabled.
A disabled event that was scheduled for a prior day will most likely have been dropped by
the current day's first schedule update.
Refer to your ASG-Zeke OS/390 Users Guide for information on enabling auto replies.
Syntax
ZENable
global
NOMSG
REPly
EVent num
INITiator init-ID
JOBname name
Parameters
Use any of the Global Event Selection Parameters (starting on page 143) to select events
to be enabled. The following parameters can also be used with the ZENABLE command.
Parameter
Description
EVent
Event number for which auto replies are to be enabled. This command
only has effect if the ZDISABLE command was previously used to
disable auto replies for the event.
ZENA EV 55 REP
209
Parameter
Description
NOMSG
REPLY
ZHOLD Command
The ZHOLD command performs the following functions:
An operator hold on an event prevents Zeke from dispatching the event. The event can be
in either the schedule queue or the dispatch queue when the hold is placed on it.
If the event is in the schedule queue, it still follows the normal progression into the
dispatch queue when the time and prerequisite requirements are satisfied, but is not
dispatched. A ZD HOLD will display all events on hold. A ZD HOLD=reason will display
events that are held with the specified hold reason. A hold is released with the ZRELEASE
command.
An operator hold on an initiator prevents Zeke from dispatching any jobs to that initiator.
It does not prevent jobs from running in that initiator if they are submitted by any source
other than Zeke. Only an initiator defined to the GENSYS option can be held.
A system hold prevents Zeke from dispatching any events of any type. Zeke continues to
perform its monitoring duties while on hold, and events still move from the schedule queue
to the dispatch queue as their time and prerequisites are satisfied, but no events are
dispatched while a system hold is in effect. A system hold is removed with the
ZRELEASE command. The system hold remains in effect until it is released, or until Zeke
is terminated.
Note:
It is possible to interrupt a system hold to run some jobs, without releasing the system
hold. To do so, place a hold on all events, and then release the existing system hold.
Release the events that you want to run. When you are ready to run everything normally,
release the hold on all events.
210
4 Operator Commands
Syntax
ZHold
global
INitiator init-name
SYstem
NOMSG
Parameters
To place a hold on one or more events, enter one or more Global Event Selection
Parameters (starting on page 143) to select the events. An event hold remains in effect
until it is specifically released, regardless of any system IPLs.
Examples
The following are some examples of using the Global Event Selection parameters with
the ZHOLD command:
ZH EV 45
Place operator hold on event 45.
ZH JOB *PR
Place operator hold on any job event having a jobname beginning with PR.
ZH ALL
Place operator hold on each event in the schedule queue.
ZH JOB *
Place operator hold on all job events
ZH GRO PAY ALL
Place operator hold on all events with the group name PAY.
ZH AP JOB ALL
Place an operator hold on all events with the application name JOB. To place a hold
on an initiator, use the INITIATOR parameter to name the initiator. This keyword
indicates the hold is an initiator hold and not an event hold or a system hold. In this
case, all other hold parameters are ignored.
To place a system hold on Zeke, use the parameter SYSTEM. In this case, any event
selection parameters are ignored.
To verify whether there is a system hold in effect, enter ZHOLD SYSTEM. If there is
already a system hold, the command is rejected. If not, the command is accepted and an
appropriate message is displayed.
A system hold or an initiator hold remains in effect until a ZRELEASE SYSTEM
command is issued, until the system is IPL'd, or until Zeke is cycled.
211
Parameters
The following parameters can also be used with the ZHOLD command:
Parameter
Description
NOMSG
Place a hold on the entire system from which the command is issued.
The ZHOLD SYSTEM command must be issued from the system being
placed on hold it cannot be used to place another system on hold.
Therefore, if you issue the ZHOLD SYSTEM command with a system
ID, the system ID is ignored and the system it was issued from is put on
hold. For example, issuing the command ZH SYS CPUA from CPUB
will place the CPUB system on hold rather than CPUA (because the
system ID is ignored).
212
4 Operator Commands
ZID Command
The ZID command displays the following information on the system console:
Number of days remaining in the password counter (number of days left in the
45-day grace period that Zeke will run without obtaining a proper operating
password from the ASG Service Desk)
Subsystem ID
NETREGID
Syntax
ZID
Sample Output
Z0903I ZEKE Z520A000 X240A000 9672-030041 Days: 13
Z0903I Time 10:47:52 01/08/2000 Saturday 2000008
Z0903I Cpuid:G Cpuname:PT51ZK51 Genopt:********
Z0903I Subsys:GWS4 Catid:AF3F35C8 P Netregid:ZEKEAL5R
Z09AKI ZEKECAT AF3F35C8 VOL=DEV400 DSN=ZEKE.R520A.GWS.DBASE
213
ZINFO Command
The ZINFO command displays the following information on the system console:
Number of days remaining in the password counter (number of days left in the
45-day grace period that Zeke will run without obtaining a proper operating
password from the ASG Service Desk)
Subsystem
Catalog ID
NETREGID
Number of entries
Amount in use
Amount unused
Syntax
ZINFO
Sample Output
Z0903I
Z0903I
Z0903I
Z0903I
214
4 Operator Commands
ZKILL Command
The ZKILL command terminates the time monitoring, event dispatching, and command
processing functions of Zeke or terminates only Zeke dispatching.Refer to your
ASG-Zeke OS/390 Users Guide for more information on restarting or terminating Zeke.
Syntax
ZKILL
COLD
FORCE
WARM
Parameters
One of the following parameters is required with the ZKILL command:
Parameter
Description
COLD
Terminates all Zeke processing and release all Zeke program and
table storage. Other products within the same address space remain
active.
ZKILL COLD
WARM
215
ZMAP Command
The ZMAP command maps the OS/390 initiators that are running active jobs. The
information includes the following:
Current jobname
Phase name
CPU time
Syntax
ZMap
ALL
CLass
class-ID
Parameters
The following parameters can also be used with the ZMAP command:
Parameter
Description
none
ALL
Displays initiators running active Zeke jobs and non-Zeke jobs. Only
jobs that started after Zeke came up are listed.
ZMAP ALL
CLass
4 Operator Commands
ZOK Command
The ZOK command notifies Zeke that an event has been approved by the operator for
dispatch. If the OPEROK field response on the Event Master Record is YES (Y), ZOK is
required for an event.
When events requiring an operator approval move from the schedule queue to the dispatch
queue, the operator is notified by a console message. The events remain in the dispatch
queue until the ZOK command is issued.
Note:
If an event is in the schedule more than once, the ZOK command only affects the first
occurrence.
Syntax
ZOK
global
Examples
Use the Global Event Selection Parameters (starting on page 143) with the ZOK
command. The following are examples of using the ZOK operator command with some
of the Global Event Selection parameters.
ZOK EV 56
Select event 56 for OPEROK.
ZOK JOB *PR
Select all job events having a jobname beginning with PR for OPEROK.
ZOK ALL
Provide OPEROK for all that require it.
ZOK DQ,ZCOM
Provide OPEROK for all ZCOM events in the dispatch queue.
ZOK GR PAY ALL
Provides OPEROK for all events with group ID PAY.To display a list of all events
that require an operator OK, use the ZDISPLAY command and the OPEROK
parameter, or use the ZSTATUS command and the ALL parameter.
217
ZREFRESH Command
The ZREFRESH command refreshes a schedule queue record by resetting the event as if
it had not been run. The prerequisite and completion indicators are reset.
Because the REFRESH command resets all prerequisite completion indicators, all
prerequisite conditions (EOJ, AEOJ, etc.) must be satisfied once again. To automatically
satisfy the prerequisites, use the ZALTER WHENOK command.
Any refreshed event is placed on operator hold automatically by the system. The operator
has to release the hold before the event can dispatch. This prevents the system from taking
any action concerning the event before the operator is ready.
Only events that have been dispatched (events in SUCC, ACTV, or PEND status) can be
refreshed using the ZREFRESH command.
Syntax
ZREFresh
global
EVent number
RERUN
FORCE
Parameters
To select an event or events, enter one or more of the Global Event Selection Parameters
(starting on page 143). The following parameters can also be used with the ZREFRESH
command.
Parameter
Description
RERUN
218
4 Operator Commands
Parameter
Description
FORCE
Examples
The following examples show the use of some of the Global Event Selection parameters.
ZREFRESH JOB * APP TST
Set up all job events with application of TST for processing again.
ZREF JOB * GRO PRD
Set up job event with a group ID of PRD for processing again.
The following example uses both ZREFRESH and ZALTER on the same command line.
ZREF EV 45 ZA EV 45 WHENOK
Set up event 45 for processing again, and consider all prerequisites satisfied.
219
ZRELEASE Command
The ZRELEASE command releases the following types of holds:
Syntax
ZRelease
global
INITiator init-ID
SYstem
Parameters
To release an operator hold on one or more events, use the Global Event Selection
Parameters (starting on page 143). The system reports the number of events selected for
release. An event is not selected for release if it is not currently being held. So, the
message ZREL EV 45 of Z0906W NO QUALIFYING SCHEDULE ENTRIES FOUND
might mean that event 45 is not selected for the release because it is not being held.
Examples
The following are some examples of using Global Event Selection parameters:
ZR EV 45
Release the operator hold on event 45.
ZR JOB PR******
Release the operator hold on any job event having a jobname beginning with PR.
ZR ALL
Release the operator hold on all events in the schedule queue or dispatch queue.
ZR JOB *
Release the operator hold on all job events.
ZR JOB * HOLD=NET
Release the operator hold on all job events that have been internally placed on NET
hold.
220
4 Operator Commands
Note:
Valid qualifiers for HOLD are: OPER, SJCL, NET, RFSH, DNPL, INTR, and PSID.
To release an operator hold on an initiator, use the INITIATOR parameter. This parameter
names the initiator to be released. A hold on an initiator prevents Zeke from dispatching
job events to that initiator.
Parameter
Description
INitiator
Description
SYstem
221
ZRELOAD Command
The ZRELOAD command reloads selected system tables. If you are running multiple
systems, the ZRELOAD command must be issued for each system.
Note:
Audit options are not reset by the ZRELOAD GENOPT command. Zeke must be cycled
before they are effective.
Syntax
ZRELOAD
GENopt
INITiator init-ID
JOBIndex
SCHD
Parameters
Use the following parameters with the ZRELOAD command:
Parameter
Description
INITiator
GENopt
IDCAMS
JOBXIT#
MULTSYS
NETREGID
OPRHOLD
POSID
VARINDEX
WKTRGDN
X14COML
DYNSMF
IEFU83
Note:
You must exit from the Generation Options screen in order for the
ZRELOAD GEN command to take effect.
222
JOBIndex
SCHD
4 Operator Commands
ZRESOURCE Command
The ZRESOURCE command maintains resources defined to the Zeke database. Use this
command and its parameters to display resource detail, alter resource detail, and release a
resource from events or a system.
Syntax
ZRESource
DISPLAY
ALTER
RELease
resource name
*
resource name
*
resource name
*
ALL
SYStem sys-ID
SYStem *
ALLSHR
NOSHR
SHR n
ENABLE
DISABLE
ALL
EVtnum number
DAte yyyyddd
SYStem sys-ID
SYStem *
VER number
Parameters
Use the following parameters with the ZRESOURCE command:
Parameter
Description
resource name Required. Resource names cannot contain embedded blanks. Enter
an asterisk (*) to display all resources.
ZRES DISPLAY 3480
223
Parameter
Description
SYStem
NOSHR
SHR {n}
ENABLE
DISABLE
RELEase
EVtnum
224
4 Operator Commands
Parameter
Description
DAte
SYStem
VER
Sample Output
The following is a sample of the output:
Z0994I RESOURCE DISPLAY
SHARE
MAX EX SYSTEM
RESOURCE NAME
3
3 N (GLOBAL) EWP1
SHR(10/0/2001055 A, 11/0/2001055 A, 12/0/2001055 A)
event number
version
schedule date
ZSCAN Command
The ZSCAN command validates or retrieves JCL that will be submitted by Zeke. For
example, for an OS/390 job the JCL is passed to OS/390 with the TYPRUN=SCAN
parameter specified on the job card.
ZSCAN can be used for any job event in the schedule queue that will be submitted to an
operating system that supports this type of feature. The event's schedule queue record is
not affected in any way and the event is dispatched normally when all its dispatch
requirements are met.
The default is to scan the event on the submission system. If another system is desired, use
the ONSYS parameter.
225
Syntax
ZSCAN
global
ONSYS sys-ID
JCLR
Parameters
Use any of the Global Event Selection Parameters (starting on page 143) with the
ZSCAN command. The following parameters can also be used with the ZSCAN
command:
Parameter
Description
JCLR
Retrieves the JCL from the JCL source and puts it in the SQR so you
can view or update it. The JCL must reside on the same system you
are issuing the command from. For example:
ZSCAN EV 14 JCLR
226
4 Operator Commands
ZSET Command
Set Variable Values
The ZSET command can be used to set the value of a Zeke variable to a specified or
calculated value. The variable is added to the Zeke database if it does not already exist.
The ZSET command cannot be used to set OASIS variable values.
Syntax
ZSET
VAriable $var-name
EQual
value
+ value
- value
Examples
ZSET VAR $CHAR3 EQ DATE
$CHAR3 is equal to the current date.
ZSET VAR $CHAR4 EQ ZEKECPU
$CHAR4 is equal to the CPU name.
227
Parameters
Use the following parameters with the ZSET command:
Parameter
Description
VAriable
EQual
You can use both a plus (+) and a minus (-) on the same statement. However, only one
plus and one minus can be used per statement. For example, ZSET VAR $VAR1 EQ
$A + $B - $C is valid, but ZSET VAR $VAR1 EQ $A + $B + $C is not valid
+ (plus)
228
4 Operator Commands
Syntax
ZSET
SYStem sys-ID
SYStem
*
Normally, the Zeke command processor assumes the commands entered are from the
system from which the command originates. To enter commands for events on another
system ID, you must enter the system ID on the command line.
This command is useful for CMS users, since each CMS user accessing the same Zeke
database must have a unique system ID. Events displayed in the ZCOM function are
always on a different system ID (that of an OS/390 user ID). Use this command to establish
a default system ID for subsequent commands (even the operator console command
processor on System A could be set to affect events on System B by default). The ZSET
command with the SYSTEM parameter is allowed even if other types of ZSET commands
are restricted through Zeke's security system.
ZSET SYSTEM B
Sets the default system to system B. All operator commands are assumed to apply
to system B until the system is reset.
ZD
Displays events on system B. Same as entering ZD SYS B
ZA EV 4 NEWSYS A
Changes event 4 from system A to system B.
ZD SYS C
Displays system C events.
ZSET SYS *
Causes subsequent Zeke commands to effect qualified events on ALL systems.
229
ZSTATUS Command
The ZSTATUS command displays the reason an event is waiting in the dispatch queue.
The output from the command is displayed on the system console. (If the event is simply
waiting for an initiator, the reason is not displayed.) Some of the reasons include:
Any message displayed at the time operator action was first required is redisplayed.
The ZSTATUS command displays the same information as the ZD WAIT command on
page 196.
Only events in the dispatch queue are selected for processing by the ZSTATUS command.
Refer to your ASG-Zeke OS/390 Users Guide for information on using Schedule View to
monitor events.
Syntax
ZSTatus
global
Parameters
The Global Event Selection parameter DQ (dispatch queue) is assumed for this
command. The parameter SQ (schedule queue) is ignored if entered. Use any other
Global Event Selection Parameters (starting on page 143) to select the proper events.
Examples
The following examples demonstrate the use of the ZSTATUS command, along with
some of the Global Event Selection parameters.
Note:
The output from this command will be displayed on the system console.
ZSTATUS EV 88
Display status of event 88.
ZST JOB CD07UPDT
Display status of job CD07UPDT
230
Index
Symbols
$XXXXX special name 78
A
ABCODE special name 77
ABTYPE special name 77
ACTV status 201
address on reports, updating 43
AEOJ (abnormal end of job) status 201
Audit Log Facility 43
B
backing up the database, BACKUP batch
utility 68
batch utility program
character string delimiters 3
$$ (two dollar signs), end of
statement 3
command acceptance 5
executing ZEKEUTL procedure 5
formatting rules 3
OCCURS/WHEN clauses 4
main functions 2
parameters and operands, syntax of 3
reading input source 5
statement format 3
BACKUP command 68
CALENDAR command 911
CREATE command 11
DOC function 1316
EVENT command 1740
JCL function 4142
OPTION function 4346
OVERRIDE command 5961
REPORT command 6163
RESTORE command 4751
SCHEDULE command 5263
SIMULATE function 65
VAULT function 64
C
calculating dates (CDATE) 88
calendars
CALENDAR batch utility 911
listing calendar information 129
CAPS OFF
using to enter mixed case job names in
WHEN conditions 4
case mixed see job name long
CDATE, date calculations 88
code, see condition codes
commands
issuing via SET xCOM 81
commands, see batch utility program,
operator commands
company name on reports, updating 43
COMRC special name 77
condition codes 23
setting codes using ZEKESET 84
conventions page vii
CPU password 43
CPUID special name 77
CREATE batch utility 11
creating
sequential disk file 103
creating a sequential disk file 119
D
database
backing up the database 68
copying
Audit Trail dataset 6
documentation to the
database 13
JCL into the database 41
Zeke database 6
initializing the database 11
restoring the database 47
status report 43
vault, disabling 64
dataset triggering hold code 197, 206
dataspace
use in report generation 112
date calculations (CDATE) 88
231
232
job
event 1840
job name
long
in WHEN conditions 4
with most operator
commands 148
with ZADD 148
with ZDISPLAY 147
mixed case, see job name long
JOBNAME special name 78
L
LASTCOND special name 78
LASTEVENT batch parameter 13, 21, 41
LASTPGM special name 78
LASTSTEP special name 78
LITERAL special name 78
long job name, see job name long
M
mixed case, see job name long
MULTHIT parameter 45
MULTISYS parameter 45
N
NAME1 parameter 45
NAME2 parameter 45
NAME3 parameter 45
NAME4 parameter 45
NETREGID 161
NNN special name 79
NOTRIG option 163
O
OCCURS clauses
formatting rules 4
ON EOM command (end-of-month
rounding) 95
operator commands
abbreviations 141
documentation conventions 141
entering commands from console,
/ZC, or ZCOM 139
global event selection parameters 143
multiple parameters 142
ZADD 152
see also ASG-Zeke User Guide
ZALTER 159
ZDELETE 168
Index
ZDISABLE 172
ZDISPLAY 174
ZENABLE 209
ZHOLD 210
ZID 213
ZINFO 214
ZKILL 215
ZMAP 216
ZOK 217
ZREFRESH 218
ZRELEASE 220
ZRELOAD 222
ZRESOURCE 223
ZSCAN 225
ZSET 227
ZSTATUS 230
operator IDs
listing information about IDs 135
security classes, listing information
about 137
operators in IF clauses 76
OPTION batch utility 4346
OUTFILE parameter 103, 119
output reports to file 103
OVERRIDE batch utility 5961
P
password 43
PASSWORD parameter 45
PEND status 201
POSID parameter 46
POSIDEND parameter 46
printing the database status report 43
R
RDATE 52
reason codes 197, 205
recurring events 38
refreshing events 158, 218
remote prerequisites (satisfying WHEN
conditions on remote systems) 185
REPORT batch utility 6163
report writer facility
calendar listings
reporting parameters 129
sample reports 130
creating a sequential disk file 103,
119
event master listings
fields parameters 107
line spacing parameters 107
page break parameters 106
report formatting 104
233
234