Step 4. Set up file JSMCLTDTA.txt - Optional
On the iSeries the information held in this file is implemented as a data area. For Windows and Linux, a flat file is used, JSMCLTDTA.txt. The file can be setup and edited using any text editor such as Notepad.
It is located in the path: c:\Program Files\LANSA\x_win95\x_lansa
The file may contain two keywords:
- DefaultServer – the default host name and port.
- ExcludePrefix – prefix for fields to be excluded from automatic exchange between JSM services and LANSA functions.
The DefaultServer setting is useful if you want to execute your functions on the desktop in Windows but access the JSM services on the iSeries.
For example the following entries specify the DefaultServer as the IP Address and Port No. 10.44.10.252:4670
# localhost:4560 is the installed value for DefaultServer# If you are connecting to a different server and/or using# a different port, please change the setting below to reflect # the server and/or port, ie, # DefaultServer=MyHost:4560DefaultServer=10.44.10.252:4670ExcludePrefix=JSM
Entries beginning # are comment lines and are ignored.
See the
guide for full details.With the file JSMCLTDTA.txt correctly set up you can complete these tutorials by compiling and executing your functions in Windows only, without checking in to the iSeries server. When running them, your functions will access the JSM on the iSeries server.