HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

2-: 16
180 PRINT "END"
999 END
>
NAME Command
The NAME command names or renames the current program. The NAME command
is a command-only statement. That is, it can only be issued at the
interpreter prompt and cannot be placed in a program.
Syntax
NAME [
fname
]
Parameters
fname
A name for the current program.
fname
is a valid MPE
file name that conforms to MPE file name rules. If
fname
is not specified, the program has no name.
Therefore, the NAME command can be used to delete a
program's name. The SAVE and RESAVE commands use
fname
as the program name.
Examples
NAME "Test1" !The current program is called Test1
NAME "File2.grp" !The current program is called File2.grp
NAME !The current program now has no name
REDO Command
The REDO command allows you to replace, delete, or insert characters in
the last line that was accessed. The line may have been entered or it
may have been accessed by any of the MODIFY, GET, LINK, MERGE, CHANGE, or
REDO commands. The REDO command works exactly like the MODIFY command,
except that it can modify a command as well as a program line. The REDO
command is a command-only statement. That is, it can only be issued at
the interpreter prompt and cannot be placed in a program.
Note that the GET command accesses each line of the program.
Consequently, a REDO following a GET will display the last line that the
GET has accessed.
Syntax
REDO
Example
The following example shows the use of the REDO command to correct syntax
errors.
>
20 INTGGER N,P,R RETURN
20 INTGGER N,P,R