|
<Snip>
Here is a snippet of the program, if anyone has any suggestions on how
to
add in some logging I would be most appreciative.
</Snip>
We have a message queue, AUKBACKUP, for the backup jobs which we send a
program message to as the backups progress, using:
TAG0030: RTVSYSVAL SYSVAL(QDATE) RTNVAR(&QDATE)
RTVSYSVAL SYSVAL(QTIME) RTNVAR(&QTIME)
CHGVAR VAR(&STAMP) VALUE(%SST(&QDATE 1 2) || '/' || +
%SST(&QDATE 3 2) || '/' || %SST(&QDATE 5 +
2) || ' ' || %SST(&QTIME 1 2) || ':' || +
%SST(&QTIME 3 2) || ':' || %SST(&QTIME 5 2))
SNDPGMMSG MSGID(AUK0102) MSGF(AUKMSGF) MSGDTA(&STAMP) +
TOMSGQ(AUKBACKUP)
Then, to see what happened during the backups we just use DSPMSG
AUKBACKUP and get the following:
Display Messages
System: POLARIS
Queue . . . . . : AUKBACKUP Program . . . . : *DSPMSG
Library . . . : AUKSYS Library . . . :
Severity . . . : 00 Delivery . . . : *HOLD
Type reply (if required), press Enter.
AUKSAVLIB - Offline backup process started at 01/08/05 03:00:05
AUKSAVLIB - Library A10DBADEV being saved to *SAVF in AUKSAVFLIB at
01/08/05 03:00:05
...
...
AUKSAVLIB - Library A11SYSPTF being saved to *SAVF in AUKSAVFLIB at
01/08/05 03:32:10
AUKSAVLIB - Offline backup process completed at 01/08/05 03:32:12
AUKSAVLIB - Tape backup process started at 01/08/05 03:32:12
AUKSAVLIB - Tape backup process completed at 01/08/05 05:37:56
Within the job we monitor for errors at each stage of the process and
send a timestamped message as appropriate.
Jonathan
www.astradyne-uk.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.