COBOL example



Here the name on the ALIAS statement matches the name on the ENTRY statement within the COBOL source code.

This means the program can be executed by either name, but when EPTEST2 is used on the JCL EXEC statement processing begins at the first instruction within the PROCEDURE DIVISION.

When EP4 is used on the JCL EXEC statement processing begins at the instruction after the COBOL ENTRY statement.




The ep_name must comply with program naming rules. If there is no matching ESD entry, the alias becomes an alternative name to that on the NAME statement and processing will start at the main entry point.

Copyright © Legac-e Education 2015-