Previous Topic: Syntax DiagramNext Topic: YWRKLIBLST (Work with Library List)


Parameters

Parameter

Definition

Value and Description

FILE

Qualified name of file whose records are displayed and optionally changed. The file may be any database file

  • *PRV: The file specified on the previous invocation of YWRKF within the current job is used. Using *PRV gives a substantially quicker response.
  • Note that *PRV may be used when looking at a different member within the same file.

MBR

Member containing data which is to be displayed

  • *FIRST: (default) The first member in the file is used.
  • *SELECT: Display a list of the members within the specified file - one of which may be selected

ACCPTH

Access path of file to be used

  • *FILE: (default) Indexed files are accessed in key sequence. Arrival sequence files are accessed in record arrival sequence.
  • *ARRIVAL: Use arrival sequence path regardless

COLHDG

Column heading option

  • *COLHDG: (default) DDS column headings are used to identify data fields. If a field has no column headings, then the DDS name is used instead
  • *FLDNAM: DDS field names are used to identify data fields
  • *NONE: For physical file and single-format logical files, no column headings will be used, allowing 15 lines of data records to be displayed. For multiple-format logical files, single separator lines will be used between data records of different record formats; each separator line will consist simply of the name of the record format. Note that F22 is ignored if COLHDG(*NONE) is specified.

     

CFMPMT

Default Confirm value

  • *NO: When a record is added, updated or deleted in the file and the Enter key is pressed, a confirm prompt will appear defaulted to 'N'. If the Enter key is pressed again, the request will be cancelled. If the value is changed to 'Y', the request will be processed.
  • *YES: When a record is added, updated or deleted in the file and the Enter key is pressed, a confirm prompt will appear defaulted to 'Y'. If the Enter key is pressed again, the request will be processed. If the value is changed to 'N', the request will be cancelled.
  • *BLANK: When a record is added, updated or deleted in the file and the Enter key is pressed, no confirm prompt will appear and the change will be processed immediately.

    Note: If a 1-character data area called YWRKFDCA exists in the library list, the value of that data area will be used to determine the initial confirm prompt value, irrespective of the value entered for this parameter.

KEYOPT

Key Option

  • *NONE: No key options are used
  • *PROTECT: When an existing record is updated, the key fields are protected and cannot be changed.

    *HIGHLIGHT: When a keyed record is displayed in multiple-record mode or is displayed, deleted, updated or created in single-record mode, the descriptive text for the key fields is highlighted.

    *BOTH: Processing for both the *PROTECT and *HIGHLIGHT parameter values will be used.