Generate a SUBROUTINE from ILF

APPX 5.2 added four runtime utilities for building a SUBROUTINE in an application. Keep the create, write and close calls in the same SUBPROCESS family.

Build the process

  1. Call .UTIL SUBR CREATE to create an empty subroutine.
  2. Call .UTIL SUBR WRITE ILF for each statement. Pass the operands required by that statement.
  3. Call .UTIL SUBR CLOSE to close and compile the process. Check for compilation errors before invoking it.
  4. To remove the generated design, call .UTIL SUBR DELETE. Otherwise it stays in your application.

Share the calls between processes

Keep CREATE, WRITE ILF and CLOSE in the same SUBPROCESS family so that the calls share their work fields. A RELATED or DETACHED child starts a different scope.

Comments:

Read what other users have said about this page or add your own comments.


 

-- JeanNeron - 2012-06-20
Topic revision: r5 - 03 Dec 2026, AdminUser - This page was cached on 03 Dec 2026 - 19:42.

Powered by Foswiki. Wiki content belongs to its contributing authors.