User`s guide

EXECUTE/c sample
13. The program greets you, asks for your name, and prints the response on the screen. A
message is then displayed indicating that the program is completed.
14. If all works correctly, create a program library using the MODULE command.
MODULE sampfile = sample, get_response
15. Save your programs to a disk file by entering the commands:
STOREM sampfile.v2 = sample
A program library (module) file is created (using the default path specification) that
contains the two programs, sample and get_response.
16. To verify that the programs were stored successfully, enter the commands:
ZERO
LOAD sampfile.v2
EXECUTE/C sample
The program executes as before. See the V+ Operating System User's Guide for details
on the default path and options to the STORE commands.
When you are creating and modifying programs, keep in mind:
l If you load a file containing programs with the same names as programs resident in
memory, the resident programs will NOT be replaced. You must delete (from memory)
a program before you can load a program with the same name.
l You cannot overwrite existing disk files. A file must be deleted from disk (with the
FDELETE instruction) before a file of the same name can be written to the same sub-
directory. If you are making changes to existing files, we recommend the following
procedure:
1. Rename the existing file for backup:
FRENAME filename.bak = filename.v2
2. Store the modified files:
STOREM filename.v2
3. When you are satisfied with the modified files, delete the backup:
FDELETE filename.bak
l If you have programs from multiple disk files resident in memory, the module
commands will help keep the various files straight. See the descriptions of MODULE,
STOREM, MIDRECTORY, LOAD, MDIR and DELETEM in the V+ Language Reference
Guide.
Sample Editing Session
V+Language User's Guide, v17.0
Page 82