NetBase for MPE Reference Guide

NetBase Shadowing
5-21
Checking for Synchronization:
The SHADOW statements in the NetBase directory on the shadow system are used by the posting
process to flag whether or not a shadow file is in sync. The LISTS command in NBDIR can be used to
see which files are out of sync or discarding. However, if you are shadowing numerous files, this
display can be cumbersome and hard to read.
The utility, NBSYNC, can be used to check to see the state of shadowed files.
RUN NBSYNC.PUB.NETBASE,VERIFY;INFO=”@.@.@”
The VERIFY entry point will instruct NBSYNC to go out and read the SHADOW statements in the
NetBase directory. It will print the name of each file that is in a queue, discard or sync state. It will
also set a JCW called VERJCW which can be checked to see if files are in sync. The following table
lists the VERJCW values.
Value Description
WARN
A file entry exists in the directory, but the file does not exist on the system.
0
Everything is okay with this file.
1
File is in the queue state.
2
File is out of sync.
4
File is in the discard state.
You can have a combination of these values. For example, if a file is out of sync and in a discard
state, the value of VERJCW would be 6.
Example
RUN NBSYNC.PUB.NETBASE,VERIFY;INFO=‘@.@.@’
NetBase Shadowing Reset Program [x.x] Update 0 (C) QUEST Software 1996
Enter shadow filename: @.@.@
CUSTDB.GROUP1.CLASS does not exist on this system
CUSTDB.GROUP3.CLASS does not exist on this system
CUSTDB.GROUP5.CLASS does not exist on this system
BANNER.KIM.NETBASE is DISCARDING
DB.TEST.NETBASE is NOT IN SYNC
END OF PROGRAM
BUGS:SHOWJCW
CIERROR = 0
JCW = 0
VERJCW = 6