EasyManua.ls Logo

Commodore 2031 - Validate; COLLECT (BASIC 4.0 Direct Command); VALIDATE Command

Commodore 2031
98 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VALIDATE
The VALIDATE command traces through each block of data contained in all
files on the diskette. If this trace is successful, a new BAM is generated
in the disk memory and written to the diskette. Any blocks which have been
allocated but are not associated with a file name, as in the case of direct access
files will be freed for use. This will not affect relative files created using the
BASIC 4.0 DOPEN command.
In addition to reconstructing the BAM, VALIDATE deletes files from the direc-
tory that were never properly closed. If a READ error is encountered during a
VALIDATE, the operation aborts and leaves the diskette in its previous state. If
a VALIDATE error does occur, you must re-initialize before proceeding.
The format for VALIDATE is:
PRINT#15,"VALIDATEdr"
Where: dr = drive number 0
NOTE
You may abbreviate VALIDATE to V.
Example: OPEN1,8,15
PRINT#1,"V0"
or
PRINT#1,"VALIDATE 0"
COLLECT - (BASIC 4.0 Direct Command)
The COLLECT command in BASIC 4.0 performs the same function as VALI-
DATE. Either command will accomplish the following:
* Recreate a Block Availability Map according to valid data on disk
* Delete files from the directory which were never properly closed
OPENed but never CLOSEd)
The format for COLLECT is:
COLLECT Dx ON Udn
Where: x = drive number 0
Example: COLLECT D0 ON Udn
Verifies the drive (drive defaults to 0)
22

Table of Contents

Other manuals for Commodore 2031

Related product manuals