2.5.4.11 SAVE Command
The SAVE command copies a BASIC source program from
memory to a file. You can specify a storage device, a file
name, and a file type in the SAVE file specification. In the
following program, a SAVE command instructs VAX BASIC
to arrange the program in ascending line number order and
copy it to a file on MTA1: in the current default directory
with file name TEST and the default file type of .BAS.
10 REM THIS IS A TEST
30 PRINT "THIS IS A TEST"
SAVE MTA1:TEST
If the program in memory has no name, and you issue the
SAVE command with no argument, VAX BASIC copies the
program to a file named NONAME with the default file type
in your current default device and directory.