Parsing a Cobol source module that contains nested programs
When I try to parse a source module that contains 1 or more nested programs in it, (ie there is more than one IDENTIFICATION DIVISION within the source module), then I get an error on subsequent IDENTIFICATION DIVISION statements saying they are illegal.
How do I proceed?
Although a number of Cobol compilers (eg OSVS and Micro Focus) support nested programs, they are not supported by Enterprise Analyzer (EA) or Modernization Workbench (MW). The work-around is to remove the sub-programs and place them into separate files and then parse them as separate entities.
If this is being done as part of the BRP process, then this should be done as part of the staging user exit, as it needs to have done prior to the programs being loaded into the product, which is the update phase.
Incident # 2603921