Data editing > Data validation > Column and code validation > action code
 
action code
Quick reference
To define a default error action code, type:
rqd number
number is a number between 0 and 7 inclusive.
More information
The action code is a number between 0 and 7 which tells Quantum what to do with records that do not match the required conditions (for example, records which are blank but which should contain codes). The action code can either be entered as a parameter on each require statement or, if it is the same for all statements, on an rqd statement.
Code
Description
0
Print a summary of errors only: records are not listed individually, but a count is kept of the number of records failing each require statement. This is printed out at the end of the run.
1
Reject the record from the tables.
2
Print the whole record in the print file, out2.
3
Print the record and reject it from the tables. This is the default.
4
Write the record to the output data file, punchout.q.
5
Write the record into the output data file, punchout.q and reject it from the tables.
6
Print the record in the print file, out2, and write it into the output data file, punchout.q.
7
Print, write and reject the record.
To write a statement which would print out incorrect records but include them in the tables, write:
r /2/ ....
Similarly, to have all incorrect records printed in the print file, written into the output data file and rejected from the tables, write:
r /7/ ....
In both cases the action code is part of the individual require statement, but where the same action applies to all requires, it is quicker and more efficient to define the action code on an rqd statement at the beginning of the edit. For example, if all erroneous records are to be written out and rejected, write:
rqd 5
The default action is to print the record out and reject it from the tables:
r /3/ ....
or
rqd 3
and if no action code is defined, this will be assumed.
See also
Column and code validation