COBCH2355 JAVA-SHAREABLE not allowed in a nested program

A JAVA-SHAREABLE block has been applied to working-storage for a nested program.

Sharing COBOL items with Java via the JAVA-SHAREABLE is not supported for nested programs, and you must remove the directives from that program.