Data editing > Flow control > Jumping to the tabulation section
 
Jumping to the tabulation section
Quick reference
To send the record to the tabulation section, type:
return
More information
return means ‘terminate the edit immediately and jump to the tabulation section’. Once the record is tabulated Quantum reads in another record as usual. If there is no tabulation section, the next record is read in straight away.
The return keyword is often used with reject to reject a record without finishing the edit. For example:
if (c73'8') reject; return
if (c80'1') t5=t5+1
end
Here any records in which c73’8’ are rejected from the tables, but, because reject is followed by return which sends records to the tabulation section, editing is terminated immediately. Thus, only records in which c73n’8’ will be tested for a ‘1’ in column 80. Compare this example with the one in Rejecting records.
Note Do not put reject after return because it will never be reached. Once the return is read, the edit is terminated immediately and the record is passed to the tabulation section without the rest of the statement ever being read:
if (c73'8') return;reject
All records are tabulated, none are rejected.
See also
Flow control