Post by Stefan on Oct 31, 2022 8:17:46 GMT -5
Sometimes it can be useful to view a previous version of the file being edited, so one might compare, or even copy/paste data from the backup.
BACKVIEW.MACRO implements an EDIT primary command which will
- display information about available backup generations of the file being edited
- Open a selected backup generation in a VIEW tab in SPFLite
The BACKVIEW command relies on the BACKUP/RESTORE support built into SPFLite.
Therefore it requires that a suitable BACUKP environment has been defined.
Please refer to "Working with BACKUP and RESTORE" in the documentation (most easily reached via HELP BACKUP).
V5 Change log:
Prior to version 5, BACKVIEW used an IMACRO override on the VIEW command to tidy up the STATE information.
This meant that the VIEW command did not execute any IMACRO setting specified in the backup file's profile.
Version 5 replaces the im_BV IMACRO with a new macro called BvTidy.MACRO.
This way, the VIEW command will honour any existing IMACRO specified in the backup file's Profile, and still tidy-up the STATE information as before.
This meant that the VIEW command did not execute any IMACRO setting specified in the backup file's profile.
Version 5 replaces the im_BV IMACRO with a new macro called BvTidy.MACRO.
This way, the VIEW command will honour any existing IMACRO specified in the backup file's Profile, and still tidy-up the STATE information as before.
If you have used prior versions of BACKVIEW, you can delete the im_BV.MACRO as it no longer being used by version 5.
BackView.MACRO (27.99 KB) The main BACKVIEW command
BVTidy.MACRO (3.68 KB) An assistance macro used by the VIEW session to keep SPFLITE's STATE folder tidy.
You are advised to enter a one-time SET ALIAS.BV = BACKVIEW statement. This will allow BV to be used as an abbreviation for BACKVIEW.
The BACKVIEW command Syntax is:
? displays the number of available backup generations
ALL displays information for ALL available generations
n displays information for the 'n' most recent generations
The 'information' will be displayed in non-permanent GNOTE> lines in the current edit file.
. the generation number (e.g. -1)
. date-time stamp of file at time of backup,
. date when backup was created,
. file size (in bytes)
. file line count (if available - requires STATE ON in profile)
VIEW mode: BACKVIEW [ -g ]
-g loads generation -g into a VIEW tab, Generation numbers count backwards, -1 being the most recent. Entering BACKVIEW without any operands will recall the most recent backup generation available (i.e. same as BACKVIEW -1)