Problem:
All of the features of FSVIEW are available to you as a command line utility.
The commands you specify on the command line define the operation to be carried out by FSVIEW. Information is returned as a scrolling screen output
Resolution:
In order to get dynamic file tracing for fileshare running in background, you should start fileshare with tracing and then switch it off
To get a trace to file from Fileshare, you need to start fs with the options
-tr f
e.g. fs -s glen -sc -tr f -pf glen.pf
will start a server called glen, using password file glen.pf, trace to a file and run synchrounously.
To enable and disable fileshare tracing using FSVIEW use
admin logon FSVIEW MFTEST
server set GLEN
trace toggle
exit
This will produce a text file fsscreen.lst in the fs start directory
To get a filehandler trace for fileshare us fsview command as follows
admin logon FSVIEW MFTEST
server set GLEN
xfhtrace toggle
exit
This will produce a binary file XFHTRACE.XFH in the fs start directory, unless the extfh.cfg configuration option tracefilename is used to set it somewhere else.
You will need to use the command
Cobfhrepro2 -d 0
To get a text readable form of the binary file.
To close a file in Fileshare using fsview, use something like the following. The following is an example fsview script called, say glen.ctl
option no-upcase
option echo
admin logon FSVIEW MFTEST
server set GLEN
server get
files get
file close C:\\FH\\XFH\\SIMPLE\\MF8.DAT
exit
run this script by using the command
fsview @glen.ctl
It will
force filenames to be case sensitive
echo commands
logon to FS using the username FSVIEW and password MFTEST
connect to server GLEN
get the server info
get the list of open files
close a file called C:\\FH\\XFH\\SIMPLE\\MF8.DAT
#netexpress
#AcuCobol
#ServerExpress
#COBOL
#RMCOBOL