HP 3000 Manuals

Notification of File Availability (NOTIFY) [ STORE and TurboSTORE/iX Manual ] MPE/iX 5.0 Documentation


STORE and TurboSTORE/iX Manual

Notification of File Availability (NOTIFY) 

During the STORE process, the file set that you are storing is usually
unavailable for modification.  Files can be modified again after STORE is
completed.  If you are using TurboSTORE and doing an online backup (using
the ONLINE option) the files being stored are unavailable for a short
time at the beginning of the store.  However, once they have been
attached to STORE's logging mechanism, they are available for
modification.

The NOTIFY option can be used to help automate the process of performing
some action at the time where the files being stored are available for
modification, either at the end of the STORE or at the end of the attach
phase.

NOTIFY allows STORE to stream a user specified job file (using the MPE/iX
STREAM command) either at the end of the attach phase (while using
ONLINE) or at the end of a successful STORE operation (normal backup).
The job file is specified by the user by setting up a formal file
designator named NOTIFY, prior to running the store job.  This job can
contain various actions that notify users that the files are free, start
other jobs that modify the files, or allow users back on to the system,
for example.

If the specified job does not contain passwords, STORE will prompt the
user for the passwords if STORE is being run from a session.  If STORE is
being run from a job and passwords are not present, the job stream will
fail.

When the job fails to stream, due to lack of passwords, or other reasons,
all error messages will be sent to the standard list ($STDLIST). All
other output as the result of streaming the job will also be sent to
$STDLIST.

The following is an example of using the NOTIFY command in conjunction
with a user specified job file.

First, set up the file equation, using the FILE command:

     :FILE NOTIFY=MYJOB.PUB.SYS 

Where the job stream could contain, for example:

     !JOB NOTIFY,MANAGER.SYS
     !TELL @ Your files are now available!
     !EOJ

Then, run STORE with the NOTIFY option:

     :FILE T;DEV=TAPE 
     :STORE @.PUB.SYS;*T;SHOW;ONLINE;NOTIFY 

Since this is an online store, the job stream will be executed once the
files have been attached, and a message would then be sent to all users
telling them that their files are now free to be accessed.



MPE/iX 5.0 Documentation