Previous Topic

Next Topic

Book Contents

Book Index

Example

In this example, if the class is not U or D, we issue an error message. The jobs that are tested are jobs that begin with PAY* and are submitted from the PRD.PAY.ACCOUNT.DAILY.JOBS library from members that begin with DPAY*.

Fig.JV.3.25 DO MSG Parameter Example

 +-----------------------------------------------------------------------------+

 | RULE      DAILYPAY   ENVIRONMENT PROD       PRIORITY 3 CONTINUE SEARCH Y    |

 | DESC       Warns that accounting jobs must run with class D and U.          |

 |=============================================================================|

 | JOBNAME PAY*____            _                                               |

 | LIBRARY  PRD.PAY.ACCOUNT.DAILY.JOBS__________________  MEMBER  DPAY*___     |

 | SCHDLIB                                              SCHDTAB          O/N   |

 |=============================================================================|

 | ON JOB           CLASS         PRTY          USER                           |

 | ACCOUNT                                                               O/N   |

 |=============================================================================|

 | IF %%$JOBCLS NE 'D'                                                         |

 | IF %%$JOBCLS NE 'U'                                                         |

 | DO MSG  TYPE E Accounting jobs must run with class D or U.                  |

 | ENDIF                                                                       |

 | ENDIF                                                                       |

 |=============================================================================|

Parent Topic

DO MSG: Action Parameter