Runtime Options
The Runtime Framework has a number of properties which can affect the behavior of isCOBOL. These allow the user to specify runtime actions such as authenticating passwords, customizing remote debugging, and specifying file systems. Properties can be set in the configuration file or dynamically changed by the application. A complete list of properties and their definitions is located in the Configuration section below. Here are a couple of examples of commonly used options.
-c
The -c option allows you to pass an additional configuration file:
iscrun -c myApp.cfg ProgramName
The properties found in the configuration file are appended to the existing configuration.
-coverage
The -coverage option generates a report of the code actually executed in the runtime session. See isCOBOL Code Coverage for more information.
iscrun -coverage ProgramName
-d
The -d option runs the program in debug mode:
iscrun -d ProgramName
See Debugger for more information about debugging.
-info
The -info option displays information about the isCOBOL application. For example:
iscrun -info ProgramName
The returned information contains:
the class location
the list of options that were used to compile the program
the version of the Compiler (build number) that compiled the program
the minimum runtime version (build number) necessary to run the program
-iut
The -iut option activates the Unit Test feature, allowing you to check if the programs are behaving as expected. It generates a report of the result at the end of the run unit. See isCOBOL Unit Test for more information.
-joe
The -joe option allows you to start JOE’s CobShell. There are two usages:
open the CobShell in interactive mode:
iscrun -joe
run a script:
iscrun -joe ScriptName.joe
See JOE for more details.
-license
The -license option displays information about the isCOBOL license.
iscrun -license
It’s good practice to use this option along with -c, if applicable, in order to have the runtime looking in every possible configuration to find the active license code. For example:
iscrun -c myApp.cfg -license
-profile
The -profile option profiles the runtime activity and generate a report:
iscrun -profile ProgramName
See Profiling COBOL programs for details.
-t
The -t option runs in terminal mode:
iscrun -t ProgramName
See Using CHARVA for details.
-update
Using the -update option causes the runtime to look for updates through ISUPDATER (Update Facility) before starting.
iscrun -update [-uc updater-config] ProgramName
The -uc option allows you to specify a custom isUpdater configuration file. If the -uc option is not used, the runtime looks for a file named isupdater.properties in the Classpath.
The configuration file must contain the setting to connect to a update server through HTTP. This setting is swupdater.site. The HTTP server should be properly configured to provide an update of the isCOBOL SDK. See Setup of an update server for the isCOBOL SDK for details.
The configuration file could contain also additional settings (see Update Facility’s Client Configuration (isupdater.properties) for details).
If the configuration file includes only swupdater.site, the runtime uses a default configuration built according to the isCOBOL installation directory on the local PC, for example it sets swupdater.version.iscobol to the build number of lib/iscobol.jar, swupdater.directory.iscobol to the path of the lib folder and swupdater.directory.iscobolNative to the location of native libraries (bin folder under Windows, native/lib folder on other platforms).
The need of updating is determined by comparing the build numbers specified by the swupdater.version properties used by the runtime with the build numbers specified by the swupdater.version properties in the server side swupdater.properties file.
a. If the server is down or no update is necessary, the runtime execution continues normally
b. If some updates were executed, the runtime is automatically restarted.
-utility
The -utility option allows you to run a utility:
iscrun -utility UtilityName
UtilityName can be any of the following (case insensitive):
cobfileio
cpk
gife
isl
ismigrate
jdbc2fd
jutil
xml2wrk
-v
The -v option displays version information about isCOBOL.
iscrun -v
--system
The --system option forces the current system Look and Feel for the GUI (default if none of the next four options is used):
iscrun --system ProgramName
--metal
The --metal option forces the Metal Look and Feel for the GUI:
iscrun --metal ProgramName
--motiv
The --motif option forces the Motif Look and Feel for the GUI:
iscrun --motif ProgramName
--GTK
The --GTK option forces the GTK Look and Feel for the GUI (not available on Windows):
iscrun --GTK ProgramName
--nimbus
The --nimbus option forces the Nimbus Look and Feel for the GUI:
iscrun --nimbus ProgramName
Multiple options on the command-line
All the above options except for -v and -info can be combined and appear in any order in the command-line. For example, if you want to debug your program using a specific configuration file and forcing the Motif Look and Feel, you use:
iscrun --motif -d -c myApp.cfg ProgramName