Follow

Setting compile & runtime options in your program template

It is NOT recommended that you change the default templates (so if you haven't done so already, create your own program template).

To change the default compile and runtime options in your program template:

C:\> cd "\your-elastic-cobol-dir\plugins\com.heirloomcomputing.ecd.ui_YY.MM.DD\program_templates\myTemplate"

Or on Linux/UNIX:

$ cd "/your-elastic-cobol-dir/plugins/com.heirloomcomputing.ecd.ui_YY.MM.DD/program_templates/myTemplate"

Edit the "template.properties" file. For example, if you wanted to add in all options for producing a compile-time listing file, you could enter the following:

elastic_cobol_setting.listing.file.value=1
elastic_cobol_setting.listing.cross.value=1
elastic_cobol_setting.listing.vbref.value=1
elastic_cobol_setting.listing.info.value=1

Next time you create a new COBOL program, your changes will be automatically applied.

In this example, creating a new COBOL program called "myProg.cbl" with this template will produce a "myProg.list" file in the "listing" folder as soon as the wizard is complete (which automatically runs the compiler).

Refer to the "template.properties" file for the location of the properties files that describe the complete list of options that can be set.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk