Journaling in TED .s 1 #The editor has the capability to save all the text you enter from the keyboard in a journal file. This is useful in the unlikely event that the computer should crash while you are editing and you have not been periodically using the 'SAVE' command. All the commands and text you type (execpting HELP text) are available then to restore you file near to that at the time you lost it (via system crash or communications failure). Note that not all of the text will be there as the editor only updates the journal file after a certain number of characters are typed (currently this is 128 but may be reduced in the future). .s 1 JOURNAL .s 1 #The JOURNAL command, when entered, will create a JOURNAL file with a name defaulting to INPUTFILENAME.JOU, and will place this file at the beginning of your directory, as in: .nf ted test.for EDIT version 7.0.16a RSTS T7.1-46 U of Toledo 70 Editing file TEST.FOR 0000118 chars ( 8 Lines) read EDIT>jou Journal file name < TEST .JOU/MO:1536 > ? EDIT>l1,3 1 ) program test 2 ) byte buffer(80) 3 ) read (5,1000) buffer EDIT>i Type CTRL/Z to stop insertions 1 )c this is a example for TED 2 )c 3 )_^Z EDIT>e Output file < TEST.FOR > ? Ready .f #To accept the file name just a carriage return was typed. From that point on until you END, QUIT, use the RECOVER or the '_@' command all text you enter will be put into that journal file, in this case called TEST.JOU. To see this, type: .nf COPY TEST.JOU l1,3 i c this is a example for TED c _^Z e Ready .f .br #Please note that currently ALL journal files are erased and deleted by the system after one day. To save a journal file you will have to rename it to some other extension (filetype) before logging off. .br #Also note that journaling will work from the screen editor with the restriction that you should not try to look at the journal file after editing as it will contain many control characters and keypad escape commands. .s 4 RECOVER .s 1 The RECOVER command reads a journal file just like an indirect command file and causes the editor to execute all the commands in the file. It can be entered at any time. Please note that the RECOVER command will close any active journal files, thus to resume journaling after the recover command you will have to reenter the JOURNAL command. .s 3 _@ .s 1 The _@ command opens a command file for execution, thus you can store common command sequences for repeated execution. The command syntax is slightly different from the other editor commands in that the filename is typed immediately after the atsign ('_@'). If no filename is present you will be asked to type the name of one. .s 3 /JOURNAL .s 1 The CCL command line (MCR for RSX) can contain the switch /JOURNAL following the filename to invoke journaling, as in: .nf TED TEST.FOR/JO .f The effect is the same as using the journal command. Note that the journal filename will be forced to INPUTFILENAME.JOU, in this case it would be TEST.JOU. .s 2 /RECOVER .s 1 The CCL command line (MCR for RSX) can contain the switch /RECOVER to initiate an edit recovery as in: .nf TED TEST.FOR/RE .f Note that the journal filename will be forced to INPUTFILENAME.JOU, in this case it would be TEST.JOU.