You can have two IDENTIFICATION DIVISIONS if you have nested source programs. A source program may contain other other source programs; these contained programs may reference some of the resources of the program within which they are contained.
IDENTIFICATION DIVISION.
PROGRAM-ID. Y.
REMARKS. Nested Called Program.
PROCEDURE DIVISION.
A.
DISPLAY "Hello World".
EXIT PROGRAM.
END PROGRAM Y.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.