CLEAR ALL FIELDS

Execution

PERFORM RMP--CAF-PANELNAME

Description

This standard run-time function inserts spaces in all alphanumeric fields/controls and zeros in all numeric and date fields/controls on the panel. It is the equivalent of issuing an INITIALIZE statement to each field defined in panelname.WS.

Required Parameters

None.

Returned Values

The value for each field/control in the panel is stored within panelname.WS.

Additional Usage Notes

  • The panel does not need to be displayed before clearing the fields/controls.
  • This standard run-time function is similar to the INITIALIZE ALL FIELDS standard run-time function. However, the INITIALIZE ALL FIELDS standard run-time function sets all fields/controls to their default values, which may not be zero or spaces.
  • This standard run-time function does not display the fields/controls on the screen.

RMP--STATUS Values

Status value Description
0 The function executed successfully.
5 The panel is not in this library
6 The library does not exist.
14 A COBOL input/output error was encountered on the panel library during execution of this function. To determine the exact nature of the I/O error, use the C$RERR subprogram.