Previous Topic Next topic Print topic


Program Painter Keywords - All Applications

The following comments and examples apply to all Program Painter Keywords.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Comments:

Code an NTRY, PROC, or OPT statement for each program.

  • To generate a batch program template with a PROCEDURE DIVISION USING statement, code PROC .
  • The generated $TP-ENTRY generates a program template to send the appropriate window depending on the program invocation mode. To suppress the window and program invocation logic from your program template, code OPT PROG .

Examples:

Generate code to receive screen SCRA when the program is screen-invoked. Specify that the program can receive a screen that contains invalid data. Omit the error paragraph.

 NTRY   SCRA * NORETRY

Receive multiple screens and include an error routine. Note that when you use SCRNLIST, you do not specify any screens in the NTRY statement.

 SYM1   SCRNLIST C1ORDR C2ORDR C3ORDR
 NTRY   * PROCESS-ERRORS
Previous Topic Next topic Print topic