Generate Subroutines via ILF
New utilities have been added for the ability to create a subroutine process via ILF code.
Overview:
Four new utilities (API's) have been added to provide the ability to dynamically create a subroutine within your ILF code:
Usage
First call
.UTIL SUBR CREATE to create an empty subroutine. Next, call
.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
.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
.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.
--
JeanNeron - 2012-06-20