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

  1. Open a text editor (on a mainframe, create a new member in the PDS public process library dataset).
  2. 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
  3. 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.

  4. Type a few spaces, then type the PNODE parameter followed by the PNODE value.
    DAILYPRC   PROCESS   PNODE=CDZOS.NEW.YORK
  5. 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                      -
  6. 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
  7. Type some more spaces, then type a hyphen continuation mark and press RETURN.
    DAILYPRC   PROCESS   PNODE=CDZOS.NEW.YORK                      -
                         SNODE =CDZOS.NEW.YORK                     -
  8. 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.

  9. 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)                     -
  10. 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
  11. The RETAIN parameter saves the Process on the Process queue after it executes, so that it can run again.
  12. Save the file to a library that can be accessed by IBM® Connect:Direct.
  13. 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.)