Write routine return codes

 0
Normal completion.
16
Output error, return to View mode.
20
Severe error. (The VIIF service terminates immediately with a return code of 20.)

After the View session has been terminated, control is returned to the invoking dialog with a return code indicating the completion status.