contents.gifindex.gifprev1.gifnext1.gif

Code Name Aliases

If you would rather specify the exact location of your CALLed program (rather than having AcuConnect search through CODE PREFIX for the location), you can define code name aliases, also in the client configuration file. A code name alias is a substitute name for the program that you're CALLing.

For example, if you have this CALL statement in your application:

CALL "prog2" using customer-info.

You could create the alias "PROG2" in your client configuration file by adding two lines:

PROG2 *servername:/usr/prog2
CODE-MAPPING 1

The first line creates the alias "PROG2" to represent "prog2.acu" on the application server in directory "/usr." The second line turns the code alias "on."

With these two lines in the client configuration file (e.g., "client.cfg"), AcuConnect knows to look on "*servername" for the remote application when it encounters the CALL.

By using aliases in the "client.cfg" file, you enable your users to change their configuration file dynamically at runtime, and you enable them to improve performance.

Note: To disable code aliases, set CODE-MAPPING is set to "0". In this case, remote program location is derived from the CODE-PREFIX variable.