Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Can the Cobol margins be changed within Enterprise Analyzer?

Can the Cobol margins be changed within Enterprise Analyzer?

Problem:

 

Can the Cobol margins be changed within Enterprise Analyzer?

Resolution:

The legacy.xml file allows users to tailor how Enterprise Analyzer (EA) processes source modules. The legacy.xml file is read from two locations.

  1. The workspace version, where it is read from the main workspace directory.
  2. The installation version, where it is read from the <production installation dir>/data directory.

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.

 

      <Preprocessor>

        <IndicatorArea>  6 </IndicatorArea>

        <AreaAStart>     7 </AreaAStart>

        <AreaAEnd>       10 </AreaAEnd>

        <AreaBStart>     11 </AreaBStart>

        <AreaBEnd>     71 </AreaBEnd>

      </Preprocessor>

 

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.

 

Notes:

  1. Changes to the margins will be read at the time that the source file is registered and when the code is verified.
  2. The changes to the margins made in the legacy.xml are not used by the editor within the EA product.
  3. The margins count starts from zero rather than 1.

 

Incident #2651267

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2014-03-12 14:32
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.