Why is this an issue?

To avoid confusion, even in different scopes, there should not be multiple programs with the same name.

How to fix it

Code examples

Noncompliant code example

File 1:
program fly;
  ...
endprogram

File 2:
program dream;
  program fly;
    ...
  endprogram
  ...
endprogram

Compliant solution

File 1:
program fly;
  ...
endprogram

File 2:
program dream;
  program sleep;
    ...
  endprogram
  ...
endprogram