OPT

Suppress the mainline program section generated by the NTRY or PROC keyword, in order to supply your own screen and program invocation logic. Use OPT only in online programs with screens.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Target:

Programs created in Program Painter

Syntax:

 NTRY|PROC
 OPT    PROG

Comments:

  • You can use PROGRAM, PROGRAMMER, PCONV, or PCONVERT in place of PROG in columns 12 - 72.
  • Code an NTRY, PROC, or OPT statement for each program.
    • To generate a batch program template with a PROCEDURE DIVISION USING statement, code PROC.
    • To generate a program template that fully defines all parts of your program except for the procedural code that you supply, code NTRY.