Ensure each nested program has a unique program-id name.
Program-id ContainingProgram. ... Program-id Nested1. ... End Program Nested1. Program-id Nested2. *> rename one of these programs ... End Program Nested2. Program-id Nested2. *> rename one of these programs ... End Program Nested2. End Program ContainingProgram.