The OK variable is changed by the command
WR BLOB TO PRINT SETTINGS
WR OPEN DOCUMENT
WR Print settings to BLOB
WR SAVE DOCUMENT