PURPOSE: The ACCEPT command allows field values to be entered either interactively from the terminal or from a System File.
ACCEPT \\fields\\ [{IF; UNLESS} clause]
\\fields\\ |
specifies a list of Global or system fields into which data will be entered. |
[{IF; UNLESS} clause] |
is a conditional clause that can test system fields or Global Storage fields. |
*ACCEPT @STRING
*ACCEPT @NUMBER
NOTES: For multiple field input, data can be entered at the terminal either by typing a carriage return after each entry or by separating entries on one line with the character stored in @DELIM, which is a comma by default.
Input is accepted until values for all requested objects have been entered; additional data on a typed line is ignored and a warning message is issued.
If the field specification includes an input edit specification and/or a VALID specification, these will be applied to the data input.
Input for the ACCEPT command will be taken from a System File if one is being processed.
The ACCEPT statement used in Process Modules is identical to the ACCEPT command except it can also input data into record fields as well.
SEE ALSO: : ACCEPT - PM Statement, SF