.UTIL SUBR WRITE ILF
This utility adds a statement to the subroutine you just created.
Usage:
PASS <ILF_Verb> FIELD SHARE? N
PASS <TF Flags> FIELD SHARE? N
PASS <Addn fields as req'd> FIELD SHARE? N
GOSUB --- .UTIL SUBR WRITE ILF
* Check for errors
IF --- .UTIL SUBR WRITE ILF NE
Description:
This utility adds a ILF statement to the subroutine you just created. You must have created the subroutine with
.UTIL SUBR CREATE first.
<ILF_Verb> is the ILF command you want to add, in uppercase (Required). If the verb is not recognized, the subroutine will cancel.
<TF Flags> are the True/False flags you want set on this ILF command. If the <ILF_Verb> is * or ** (comments), there are no TF flags.
<Addn fields as req'd> is the rest of the ILF command, field by field as necessary.
For example, a comment would require 2 PASS statements: one to PASS the *, and a second to PASS the comment itself.
A SET statement would require 8 PASS statements:
- The SET verb
- Any T/F flags, or blank if none
- The LHS Application Id
- The LHS Field Name
- The LHS Occurrence number
- The RHS Application Id
- The RHS Field Name
- The RHS Occurrence number
There is minimal editting done on the data you pass to this utility, any errors will be discovered when you close/compile the subroutine.
When you are finished adding the ILF statements, close the subroutine via
.UTIL SUBR CLOSE
Also see
.UTIL SUBR DELETE.
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.
Comments:
Read what other users have said about this page or add your own comments.
--
JeanNeron - 2012-06-20