Creating a Process That Executes at the Same Time Every Day
About this task
This example creates a simple Process that executes at 4:00 p.m. daily. The Process runs on a Connect:Direct® for z/OS®. The parameters are:
Parameter | Value |
---|---|
PNODE | CDZOS.NEW.YORK |
SNODE | CDZOS.NEW.YORK |
Procedure
- Open a text editor (on a mainframe, create a new member in the PDS public process library dataset).
- Type a 1-8 character name for the Process. This name must
begin with an alphabetic charter in position 1. In this example, the
Process is named DAILYPRC.
DAILYPRC
- Type a few spaces, then type the keyword PROCESS.
DAILYPRC PROCESS
The number of spaces separating keywords does not matter. Use whatever helps you understand the statement.
- Type a few spaces, then type the PNODE parameter followed
by the PNODE value.
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK
- Because we will add additional parameters for the PROCESS
statement, we must use a continuation mark to show that parameters
continue on a separate line. So, add a few more spaces, then type
a hyphen and press RETURN to move to the next line.
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK -
- Type some spaces until you are under the PNODE parameter,
then type the SNODE parameter and its value.
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK - SNODE =CDZOS.NEW.YORK
- Type some more spaces, then type a hyphen continuation
mark and press RETURN.
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK - SNODE =CDZOS.NEW.YORK -
- Type some spaces until you are under the SNODE parameter,
then type the STARTT parameter and its value (4:00 p.m. in this example).
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK - SNODE =CDZOS.NEW.YORK - STARTT=(,4:00:00PM)
The value (,4:00:00PM) indicates that this Processes will run daily at 4:00 p.m.
- Type some more spaces, then type a hyphen continuation
mark and press RETURN.
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK - SNODE =CDZOS.NEW.YORK - STARTT=(,4:00:00PM) -
- Type some spaces until you are under the STARTT parameter,
then type RETAIN=YES
DAILYPRC PROCESS PNODE=CDZOS.NEW.YORK - SNODE =CDZOS.NEW.YORK - STARTT=(,4:00:00PM) - RETAIN=YES
- The RETAIN parameter saves the Process on the Process queue after it executes, so that it can run again.
- Save the file to a library that can be accessed by IBM® Connect:Direct.
- Use the IBM Connect:Direct SUBMIT command to submit the Process (or use the SB option on a Connect:Direct for z/OS for IUI panel.)