Previous Topic: UPDLST ParameterNext Topic: RQSDTA, USROPT, OPTFIL and OPTMBR Parameters


BUILD and EDIT Parameters

Using a list will often be a several step process:

  1. Build a list.
  2. Edit the list.
  3. Filter the list.
  4. Execute the list.

Many list commands contain a facility to invoke more than one list processing function at a time, without having to re-enter the list name. The linking is done using the BUILD, EDIT, and FILTER parameters. For instance:

Using the Command Edit Object List (YEDTOBJLST) you could specify a value of BUILD (YES), you will then be prompted for the selection criteria that you wish to use to build the list. The list will be built and immediately presented for editing. Thus:

YEDTOBJLST OBJLST (QGPL/FRED) BUILD (YES)

is equivalent to:

YBLDOBJLST OBJLST (QGPL/FRED)  /* build */
YEDTOBJLST OBJLST (QGPL/FRED)  /* edit  */

Using the command Create Objects (YCRTOBJ) you could specify a value of EDIT (YES), you will then be given the opportunity to edit the list of members before they are submitted for compilation. Thus:

YCRTOBJ OBJLIB (QGPL) SRCFILE (QGPL/QCLSRC) OBJLST (QGPL/FRED) EDIT (YES)

is equivalent to:

YBLDMBRLST SRCFILE (QGPL/QCLSRC) MBRLST (QGPL/FRED) /*build*/
YEDTMBRLST      MBRLST (QGPL/FRED) /*edit */
YCRTOBJ OBJLIB (QGPL) SRCFILE(MBRLIST) MBRLST(QGPL/FRED) /* use */