RENAME [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
RENAME
The RENAME statement changes the name of a file.
Syntax
RENAME fname1 TO fname2 [, lock_word]
Parameters
fname1 Old fname of file.
fname2 New fname of file.
lock_word String expression that evaluates to the lockword for
fname1. It is required if fname1 has a lockword. The
lockword is not added to fname2.
Examples
10 CREATE "File1/secret", FILESIZE=1320 !File1 has a lockword "secret"
20 CREATE "File2", FILESIZE=2950 !File2 has no lockword
30 RENAME "File1" TO "First", "secret" !Lockword must be specified
40 RENAME "First" TO "Number1", !No lockword required
50 RENAME "File2" TO "Number2" !No lockword required
99 END
MPE/iX 5.0 Documentation