SBCGAN
Utility to read the output of disk analysis using DSKANA:
1. print the file if the message NO FILE ERRORS is not found,
2. delete the file GOOD.ANA from the PPn if the results of the DSKANA has errors.
Input A list file that is the output of DSKANA. Read in from the DO file executing the program, enter as much of a full file specification as is necessary to find the file.
Example
; Run DSKANA on each disk. DSKANA
DSK7:DISK6.ANA[135,1]=DSK6:/E
DSKANA $0DISK1.ANA=DSK1:/E
; IF LOOKUP("GOOD.ANA")=0
MAKE GOOD.ANA
ENDIF
; The file GOOD.ANA now exists.
RUN SBCGAN
DSK7:DISK6.ANA[135,1]
RUN SBCGAN
$0DISK1.ANA
; Check for GOOD.ANA was there errors?
IF LOOKUP("GOOD.ANA")=0
GOTO SKIPPAK
ENDIF
; The DSKANA's finished with no errors.
;
GOTO EXIT
;SKIPPAK
; Errors in the disk pack.
;EXIT
SBCMNU
SBCMNU is a utility program that is a generalized menu routine.
Input File SBCMNU.TXT
A file of menu titles, selections, and commands
The file SBCESC.CMD is an optional command file that will be executed when the operator pushes ESCape to exit the menu. If the file does not exist then the menu exits to the command prompt.
Example SBCMNU.TXT file, note the lines are “paired”
--------------------------------------------------------
Line one, major menu title
Line two, minor menu title
Text to display selection one
Command for selection one
Text to display selection two
Command for selection two
Text to display selection three
Command for selection three
----- Maximum of eighteen selections -----
Text to display selection eighteen
Command for selection eighteen
--------------------------------------------------------
The title and sub-title are a maximum of 50 characters. The text for the menu selections are a maximum of 32 characters.
SBCLLN
SBCLLN is a utility program to read in the file DIRECT.LST that was created from a directory of a tape backup. A printout is made of the file shortened to the first 10 lines and the last 10 lines of the original listing.
Input DIRECT.LST
Output DIRECT.TXT
Example
; Create a file of a directory from a
; tape on drive zero (0).
ERASE DIRECT.LST
MTUDIR DIRECT.LST=ALL:[]*.*
0
RUN SBCLLN
PRINT DIRECT.TXT
SBCSTM
SBCSTN is a utility program to output a time stamp message. The routine reads in a message line; adds the date time and job number and appends the message to two files:
TSTAMP.TXT and BACKUP.LOG.
When the TSTAMP.TXT file grows larger than 10 blocks then it is renamed to TSTAMP.OLD and a new TSTAMP.TXT file is created.
The BACKUP.LOG file is intended to be created each time the backup routine is executed. Typically the command file will have a print statement at the end with a delete option.
SBCSTM.INI
If the file SBCSTM.INI file exists in the current account, then the routine will search the file for any options. Currently the options are:
FILE = {new file name}
Default for the file option is FILE=TSTAMP.TXT
NOTE, If this option is used then the routine will write the time stamp message to the "new file name". It will NOT check for the maximum number of blocks in the file and it will NOT rename the file to "*.OLD".
BACKUP = {NO} {0} {False}
Default is BACKUP=YES
This option turns off the writing of the message line to the BACKUP.LOG file.
Semicolons may be used in the file to start a comment.
Input The next text line after the RUN command is written to the time stamp file.
Example
RUN SBCSTM
Start the backup routine
;
MTUSAV ALL:[]*.*
0
Volume name
Vol id
Installation
System
Creator
;
RUN SBCSTM
Finished backup.
;
PRINT BACKUP.LOG/D
*** End of APS system 15 SBC Utilities ***