contents.gifindex.gifprev1.gifnext1.gif

CODE-PREFIX Variable

In a standard client/server environment, the CODE-PREFIX variable might be defined as follows:

CODE-PREFIX . /usr/prog1 *condor:/usr/prog2

where "prog1" and "prog2" are directories containing the ACUCOBOL-GT object code (for example, "prog1.acu" and "prog2.acu"), and "condor" is the name of the remote application server.

In an Internet environment, the CODE-PREFIX variable would be defined the same, assuming that "condor" is the name of the application server on the Internet.

Notice that the name of the server is preceded by the character, "*". The asterisk indicates that the program is located on the server and that it should be run on the server as well. If you want the program to execute on the client, you can simply change the "*" to "@". This emulates standard AcuServer notation.

When the client program executes a CALL, it determines which directory contains the program by looking in CODE-PREFIX, then it executes the program on either the client or server as specified.