DOC - Open/Close a disk file that substitutes for the printer.
Say you want to print to a file named "A:\inputs.txt" (it is not case sensitive). These are the 3 commands to enter on the RTES command line: DOC A:\INPUTS.TXT PI (here you should wait and make sure the task is over. Ideally, you would have a register named PRINT$ and it should go back to 0) DOC The DOC command is toggle. The first time it opens the file (and needs a filename), the second time it closes it. You could also do: DOC database.txt PI PO PA PY PR PE PT AUTOEXEC PRINT RTES.CNF (PRINT$ goes to 0) DOC Note that DOC opens a file for appending, so if the file already exists it just adds text to it. The DOC command is also available as a task directive. It is most often used with the PRINT command to produce reports.