Error in JSM_OPEN in V10.0 due to changed location of jsmcltdta.txt
|Product/Release:||LANSA Integrator V10.0|
|Abstract:||jsmcltdta.txt file is stored in different locations between V10.0 and V11.0 which can cause errors on JSM_OPEN|
|Submitted By:||LANSA Technical Support|
The issue is regarding not being able to call JSM_OPEN on Windows when a server to connect to has not been specified as a parameter. The LANSA function is then executed from within the V10.0 Visual LANSA Development Environment. When the parameter is missing, the JSM_OPEN Built-in function looks for jsmcltdta.txt and uses the DefaultServer setting in that file. If the file can not be located an error occurs.
On Windows, the file jsmcltdta.txt is stored in different locations in V10.0 and V11.0.
In V10.0, by default the jsmcltdta.txt file is installed in:
So, V10.0 will look in the following places for this file:
- \LANSA if run from within the IDE
- X_WIN95\X_LANSA\EXECUTE if run from outside of the IDE
- anywhere in PATH (environment variable)
In V11.0, by default the jsmcltdta.txt file is installed in:
And V11.0 will look in the following places for this file
The LANSA Integrator V10.0 guide only refers to the V11.0 location. Which means that you could be correctly following the documentation but generating an error in V10.0. The documentation will be updated to contain this information regarding the location of the file in different versions of LANSA.