Using Selcase on a network

Discussions about CSEntry
Post Reply
Nevillefc
Posts: 10
Joined: February 1st, 2013, 10:37 am
Location: CSO Trinidad and Tobago

Using Selcase on a network

Post by Nevillefc »

We are testing the use of CSpro on a LAN using version 5.03.

Each person runs the same menu program on the server that which creates their own pff.
The dictionaries and lookup files are also located in a common folder for all network users.
In the program run from the pff we use both the loadcase and selcase. We haven't ecountered any problems running the loadcase
but the selcase is locking the lookup index file to the first person that uses it. It seems that only one person at
a time can access the index file on the server when using the selcase.

The selcase is used in a repeating form where most data is entered.

We utilise the selcase with the "include" to get a listing of cases from the lookup file, is their another command or group of commands
that can be used that has the same functionality ?

I know that we can place the lookup files on the data entry machines but that would defeat the purpose of the using the network.

CSO
Trinidad
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Using Selcase on a network

Post by Gregory Martin »

One trick you could do is, at the start of every data entry session, copy your lookup file to the temporary folder on your machine and use that for the lookups. That would mean that the file wouldn't be refreshed in a data entry session, but it would be fairly up-to-date. Something like this:
PROC APP_FF

preproc

    
filecopy("Z:\ServerPath\Lookup.dat",maketext("%s%s",pathname(temp),"Lookup.dat"));
    
setfile(LOOKUP_DICT,maketext("%s%s",pathname(temp),"Lookup.dat"));
Post Reply