IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
Can the Cobol margins be changed within Enterprise Analyzer?
The legacy.xml file allows users to tailor how Enterprise Analyzer (EA) processes source modules. The legacy.xml file is read from two locations.
Entries made in the workspace version of the legacy.xml file will override and or, be merged with, the installation version. Also, when updates are applied to EA, the installation version can be overwritten, so any changes that are made to that file can be lost.
It is recommended that modifications are only made to the workspace version of the legacy.xml. To make the initial version of the workspace legacy.xml, a copy of the legacy.xml from the installation directory can be taken, and then the sections that are not required removed from it.
Below is how to configure the standard COBOL margins. What is being defined is the start and end of A, the location of the inidicator area and the start and end of area B.
<IndicatorArea> 6 </IndicatorArea>
<AreaAStart> 7 </AreaAStart>
<AreaAEnd> 10 </AreaAEnd>
<AreaBStart> 11 </AreaBStart>
<AreaBEnd> 71 </AreaBEnd>
This entry would be added to one of the COBOL dialects (e.g. ACU) inside the Cobol tag within the legacy.xml.
Attached is a version of a workspace legacy.xml, Reset_Cobol_Margins_Legacy.xml
(the file needs to be renamed to legacy.xml before it can be used) that has been modified to match the free format source layout that is supported by the ACU Cobol compiler. For this to work correctly, EA 3.4 Hot Fix 6 (or later) must be installed as there was an issue with the Cobol parser when the indicator area was set to the same value as Area A Start.