---+ Generate Subroutines via ILF _New utilities have been added for the ability to create a subroutine process via ILF code._ <em><br /></em> ---++ Overview: Four new utilities (API's) have been added to provide the ability to dynamically create a subroutine within your ILF code: * [[0LASubrUtilSubrCreate][.UTIL SUBR CREATE]] * [[0LASubrUtilSubrWriteIFL][.UTIL SUBR WRITE ILF]] * [[0LASubrUtilSubrClose][.UTIL SUBR CLOSE]] * [[0LASubrUtilSubrDelete][.UTIL SUBR DELETE]] ---++ Usage First call [[0LASubrUtilSubrCreate][.UTIL SUBR CREATE]] to create an empty subroutine. Next, call [[0LASubrUtilSubrWriteIFL][.UTIL SUBR WRITE ILF]] for each statement you want to add to the subroutine. You must pass all the necessary parameters for each statement. When you have added all the statements, call [[0LASubrUtilSubrClose][.UTIL SUBR CLOSE]] to close the subroutine and compile it. Your subroutine is now ready to run, assuming there weren't any compilation errors. Note that the .UTIL SUBR * group of routines share certain internal fields therefore you can only use them in a process family with share class SUBPROCESS. In other words, don't call .UTIL SUBR CREATE in one process, then .UTIL SUBR WRITE ILF in another process that you have invoked Related or Detached. If you no longer need the subroutine, you can call [[0LASubrUtilSubrDelete][.UTIL SUBR DELETE]] to delete it. If you do not delete it, it will remain within your application just like any other subroutine. ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.JeanNeron - 2012-06-20
This topic: Main
>
APPX520Features
>
520GenerateSubroutines
Topic revision: r3 - 2012-10-26 - SherriMcCormack
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback