HP NetMail/3000 User Manual page 88

Netmail/3000 menu interface user guide
Table of Contents

Advertisement

nate.
Note that in line 12 we used the "//", which terminates the list of all recipients (a shortcut)
and ends the command. This saved a few blank lines but the blank lines could also have been
used. The "////" would not normally be used in batch mode, as it cancels the message entirely,
even cancelling any recipients al- ready entered. (It corresponds to the "CANCEL MESSAGE"
function
By implementing NetMail/3000 JCL in a job stream, a message can easily be generated
when a program successfully completes, or aborts, or any other special criteria verifiable from a
batch job. "IF"..."THEN" conditions can be used to send messages in special situations, and the
";URGENT" parameter can be added to the "SEND" command even in batch mode to signify crit-
ical messages. (In fact, any of the SEND parameters can be used, including ";PURGE",
";REPLY", ";REPLY3", or "REPLY4".)
As a more detailed example, here's a job stream that uses MPEX to check for files that
haven't been accessed in 30 or more days and sends a mail message to the owner (MGR) listing
the files and asking him/her to review the files. (Just to be annoying, we send it as an URGENT
message.)
!JOB CHEKFILE,MGR.ACCT1,PUB
!purge filelist,temp
!build filelist;rec=-80,,f,ascii;disc=3000;TEMP
!file x=filelist,oldtemp;acc=append
!file y=filelist,oldtemp
!MPEX "LISTF @.@(ACCDATE<TODAY-30&CREATOR='MGR'),2;*X"
!IF MPEXNUMSUCCEEDED>0 THEN
! CONTINUE
! RUN NETMAIL.SYS.THREEK;INFO="SEND;URGENT"
A Files created by MGR that haven't been accessed in 30+ days
*** Please review these files and delete the files that you no longer need ***
//
JOIN *Y
E
Please review these files
MGR
//
!ENDIF
!EOJ
2-88
NetMail/3000 Menu Interface
Users Guide
key.)

Advertisement

Table of Contents
loading

Table of Contents