LOGOUT (Log Output) keyword for display files

You use this record-level keyword to specify that the output buffer for this record format is to be written to the job log each time the IBM® i operating system performs an output operation for the record.

The data logged includes the values of output-capable fields, hidden fields, and option indicators specified in the record format you are defining. (Option indicators are not logged if the INDARA keyword is specified for the file you are defining.) The LOGOUT keyword is used for debugging and other exception conditions. The job log cannot be read by your program.

This keyword has no parameters.

The IBM i operating system ignores LOGOUT for either of the following conditions.
  • There are no output-capable fields, no hidden fields, and no option indicators in the record format.
  • The record format is a subfile record format for a message subfile.

Option indicators are valid for this keyword.

Example

The following example shows how to specify the LOGOUT keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00021A          R REC25                     LOGOUT
     A