|Title: How do I determine what properties are set?|
To discover what property settings are being used during local execution of a program on Windows, you can set iscobol.tracelevel=1 (or 3, 7, 15, etc) and set iscobol.logfile to the path and name of a file. You will see a trace of places where the runtime found properties and also the resulting property settings:
Outside the IDE you can add these settings with -J-D options as in the following:
Or you can add them to the properties file you specify on the command line as in:
Inside the IDE you can add these settings in the "Run configuration" you are executing. To do this, select Run > Run Configurations..., select your run configuration and type the following into the System properties field:
Or if you are not executing with a "Run configuration" then you can add these to the project's resourcesiscobol.properties file or other iscobol.properties file in your class path, or a file you have specified in the Project Properties > Settings > Compile/Runtime options Runtime tab with -Discobol.conf=config.properties, or you can add the following directly to the System properties field:
Note that the trace file log.txt will be created in the logs folder relative to the parent folder of the working directory during execution. If your working directory is set to "output" as is the default then ../logs/log.txt will appear in the project's logs folder. You may need to right-click on the logs folder and select Refresh to see the log.txt file appear in the File view.
The reason that the IDE uses the properties in resourcesiscobol.properties is that it adds ../resources to the class path by default whenever you run a program, and class path is one of the places that isCOBOL looks for properties files.
|Authored by: Veryant Support on Wed, Mar 28th, 2012 at 7:00 PM
This question has been viewed 9546 times so far.
|Online URL: http://support.veryant.com/support/phpkb/question.php?ID=193|
Powered by PHPKB Knowledge Base Software