NetBase for MPE Reference Guide

Appendix B
B-8
NBSYNC, VERIFY
QUESTION:
Is there a program I can run to check the status of my shadowed files in NBDIR?
ANSWER:
Yes, a VERIFY entry point NBSYNC has been added to allow jobs and UDCs to check to see if a file is
in the DISCARD, SYNC or QUEUE state. Run NBSYNC with the VERIFY entry point, specifying the file
(or fileset) in the INFO string. A JCW named VERJCW will have the following values:
:RUN NBSYNC.PUB.NETBASE,VERIFY;INFO="PAYDB.FILE.PAYROLL"
:SHOWJCW VERJCW
The following table lists the VERJCW values.
Value Description
WARN
A file entry exists, but the file does not exist on the system.
0
Everything is okay
1
File is in the QUEUE state.
2
File is in the SYNC error state.
4
File is in the DISCARD state.
You can have a combination of these values. For example, if a file does not exist on the system and
a database is out of sync, the value for VERJCW will be WARN2. Another example is if a file is in
queue state and another file is out of sync, the VERJCW value will be 3.