create new tag
view all tags


This utility adds a statement to the subroutine you just created.


      PASS         <ILF_Verb>                 FIELD            SHARE? N
      PASS         <TF Flags>                 FIELD            SHARE? N
      PASS         <Addn fields as req'd>     FIELD            SHARE? N
      *        Check for errors
      IF       --- .UTIL SUBR WRITE ILF       NE


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


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.


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

-- JeanNeron - 2012-06-20

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2012-10-26 - SherriMcCormack
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback