Sharp OZ-707 Operation Manual - Page 112

Format, Abbreviation, Purpose, Remarks, Example, Format

Page 112 highlights

SAVE p o FORMAT: SAVE ["d:filename" [,A]] d: E,PACOM,CAS,COM Abbreviation: SA. See Also: LOAD, DSKF, MERGE, FILES PURPOSE: Saves the basic program to the specified device. REMARKS: The SAVE statement names a BASIC program in memory and then writes it to the specified file. A filename is the name given to a program or a set of data. The desired file can be readily retrieved by the Card if it is given a filename. A filename may consist of up to eight alphanumeric characters or symbols. If all options are omitted, COM is assumed for the device name. If the A option is specified, the file is saved in ASCII format, otherwise it is saved in intermediate code format. When the device name is PACOM, CAS, or COM, the file is saved in ASCII format even if the A option is not specified. If no extension is specified, .BAS is assumed. The extension can consist of up to three characters. An existing file will be erased if the same filename is specified, but an error occurs if the existing file has the UP" (write-protect) attribute set (see SET command). An error occurs if the program in memory is made secret. EXAMPLE: SAVE "E:PR01", A Saves the program as an ASCII file with the name "PR01" on RAM disk E. 212 SET o FORMAT SET "E:filename", { U"P~""} Abbreviation: SE. See Also: SAVE PURPOSE: Assigns or removes file protection. REMARKS: The contents of a file cannot be inadvertently deleted or rewritten if UP" is specified. To clear the protection, specify a space ("~"). Once protection has been removed, the file can be deleted or written to freely. Wildcards (* or ?) can be used for filename specification, but the extension must not be omitted. For example, the .BAS extension must be specified. An error occurs if the SET command is used with a file that is open. EXAMPLE: SET "E:PAYRUN.BAS","P" Protects the program "PAYRUN.BAS· on the RAM disk E from being written to, erased, or renamed. 213

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

SAVE
FORMAT:
SAVE ["d:filename" [,A]]
d:
E,PACOM,CAS,COM
Abbreviation:
SA.
See
Also:
LOAD, DSKF, MERGE, FILES
PURPOSE:
Saves the basic program to the specified device.
REMARKS:
The SAVE statement names a BASIC program
in
memory and then
writes it to the specified file.
p
o
A filename is the name given to a program or a set of data. The
desired file can
be
readily retrieved
by
the Card if it
is
given a filename.
A filename may consist of up to eight alphanumeric characters or
symbols.
If
all
options are omitted, COM
is
assumed for the device name.
If the A option is specified, the file
is
saved
in
ASCII format, otherwise
it is saved in intermediate code format. When the device name is
PACOM, CAS, or COM, the file is saved
in
ASCII format even if the A
option
is
not specified.
If
no
extension
is
specified, .BAS
is
assumed. The extension can
consist of up to three characters.
An
existing file will
be
erased
if
the same filename
is
specified, but an
error occurs if the existing file has the
UP"
(write-protect) attribute set
(see SET command).
An
error occurs if the program
in
memory
is
made secret.
EXAMPLE:
SAVE
"E
:PR01", A
Saves the program
as
an
ASCII file with the name
"PR01"
on
RAM
disk E.
212
SET
FORMAT
{
UP"
}
SET "E:filename",
"~"
Abbreviation:
SE.
See
Also:
SAVE
PURPOSE:
Assigns or removes file protection.
REMARKS:
o
The contents of a file cannot
be
inadvertently deleted or rewritten if
UP"
is specified. To clear the protection, specify a space
("~
"). Once
protection has been removed, the file can
be
deleted
or
written to freely.
Wildcards
(*
or
?)
can
be
used for filename specification, but the
extension must not
be
omitted. For example, the .BAS extension must
be specified.
An error occurs if the SET command is used with a file that
is
open.
EXAMPLE:
SET
"E
:PAYRUN.BAS","P"
Protects the program "PAYRUN.BASĀ· on the RAM disk E from being written to, erased,
or renamed.
213