Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Program activation

A PL/I program becomes active when a calling program invokes the main procedure. This calling program usually is the operating system, although it could be another program. The main procedure is the external procedure for which the statement has the OPTIONS(MAIN) specification. In the following example, Contrl is the main procedure and it invokes other external procedures in the program. The main procedure remains active for the duration of the program.

  Contrl: procedure options(main);
    call A;
    call B;
    call C;
  end Contrl;

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)