Problem:
Resolution:
Follow these instructions to shut down fileshare in the background.
Do not stop Fileshare with kill -9.
You can write a COBOL program which calls the Fileshare Manager (Call "fsmgr" using ...) with function code 4.
The Fileshare Manager program supports the following function-codes:
1 = Backup recovery log file
2 = Close all open data files
3 = Log off all connected clients
4 = Shut down Fileshare
5 = Shut down and re-start Fileshare
Alternatively you can run the utility fsclose using "cobrun fsclose".
FileShare is running as a service using sample FS.CFG located in the Windows\\system32 directory
Using CCI.INI to set the PORT number.
FS.CFG sample
/s FSNAME
/cm ccitcp
/d ?:\\databse-reference-file
/pf ?:\\password-file
/wd ?:\\filehare-working-directory-path
/sc
CCI.INI file contains
[ccitcp-servers]
FSNAME:MFPORT:12003
[ccitcp-targets]
FSNAME=MFNODE:machine-name-or-IPAdress,MFPORT=12003
#EnterpriseServer
#Server
#Enterprise