where:
diskname - any name up to 16 characters
i.d. - any two alphanumeric characters. You must use two - you
may not leave a space.
Before a new disk can be used for the first time, it must be
formatted with the HEADER command. The HEADER command
can also be used to erase a previously formatted disk, which can
then be reused.
When you enter a HEADER command in direct mode, the prompt
ARE YOU SURE? appears, ln program mode, the prompt does
not appear.
This command divides the disk into sections called blocks. It
creates a table of contents of files, called a directory. Give each
disk a unique i.d. number. Be careful when using the HEADER
command because it erases all stored data.
You can HEADER a diskette more quickly if it was already
formatted, by omitting the new disk i.d. The old i.d. is used. The
quick header can be used only if the disk was previously
formatted, since it clears out the directory rather than formatting
the disk. The default device number is 8 and the default drive is 0.
As a precaution, the system asks "ARE YOU SURE?” before the
Commodore 128 completes the operation. Press the “Y” key to
perform the HEADER, or press any other key to cancel it.
The HEADER command reads the disk command error channel,
and if an error is encountered, the error message “?BAD DISK” is
displayed.
The HEADER command is analogous to the BASIC 2.0
command:
OPEN 1,8,15,” N0:diskname,i.d."
EXAMPLES:
HEADER “MYDISK”, 151, DO
17-38