The OpenVMS User's Guide, Second Edition

The guiding principle for making the choice [whether to add a new action or write a new program] should be that each program does one thing.
Richard Pike and B. W. Kernighan,
Program Design in the UNIX Environment, 1984
Command procedures and the various features you can use in them provide you a way of simplifying and streamlining your use of OpenVMS. In this chapter, you will
Explore the main features of command procedures
Form command procedures with familiar groups of command lines
Experiment with new ways to use logical names
Begin using global and local symbols to simplify the entry of command lines
Customize your working environment with enhanced versions of your LOGIN.COM file
Explore file-handling commands used in command procedures
Experiment with uses of parameters for command procedures
Explore uses of literal and quoted strings
Employ commenting techniques to specify key features of command procedures
A command procedure is a file containing DCL commands and perhaps some data used by the commands. These procedures can help you to simplify and clarify your use of OpenVMS because you can use them to execute many commands with one statement. Command procedures can be short yet powerful, or they can be more complex, performing program like functions. Using command procedures for repetitive or complex tasks will save you time.
You can use an editor such as EVE or EDT to write command procedures, or if...