Entering Commands
When you are running your virtual machine under z/VM®, each command, or request for work, that you enter on your terminal is processed as it is entered. Usually, you enter one command at a time and commands are processed in the order that you enter them. You can enter CP commands from either the CP or CMS environment, but you cannot enter CMS commands while in the CP environment.
After you have typed in the line you wish to enter, you press the Return or Enter key on the keyboard. When you press this key, the line you have entered is passed to the command environment you want to have process it. If you press this key without entering any data, you have entered a null line. Null lines sometimes have special meanings in z/VM.
If you make a mistake entering a command, z/VM tells you what your mistake was, and you must enter the line again. The examples in this publication assume that the commands are correctly entered.
You can enter commands using any combination of uppercase and lowercase characters; z/VM translates your input to uppercase.
cp query time # cp query reader all # receiveFirst the system will display the time, then the contents of your virtual reader, and then will read in the first file in your virtual reader.
If, however, you enter more lines than your terminal can accommodate, you receive the status message NOT ACCEPTED, and you must wait until the buffer is cleared before you can enter the line.
If there are commands that you use frequently, you can set the program function keys (PF keys) on your terminal to process them. Although there is one set of function keys (1 through 24) on your terminal, these keys can have different settings in various environments.
For example, when you first LOGON, you might set your PF keys to perform certain functions. Then, when you enter different CMS environments, your PF keys may have entirely different settings. Introducing Full-Screen CMS provides details on PF keys in full-screen CMS and in the Window Manipulation (WM) environment. The remainder of this section will concentrate on setting PF keys for use when full-screen CMS is set off.
#CP QUERY READER ALL
#CP QUERY PRINTER ALL
QUERY ACCESSEDcp set pf1 immed "#cp query reader all
cp set pf2 immed "#cp query printer all
cp set pf3 immed query accessed cp set pf5 immed xedit test file"#bo"#input line"#file sets
the PF5 key as:
XEDIT TEST FILE#BO#INPUT LINE#FILE Then,
when you press PF5, z/VM will XEDIT a file called TEST FILE, input
the word line, and write the file to file mode A.CP SET PF5 IMMED XEDIT TEST FILE #BO# INPUT LINE #FILE Then,
the next time you load CMS, the PF5 key will be set to perform this
function. In this instance, you would not need to include the logical
escape characters (") because the command was entered from a file.cp set pf1 "#cp query rdr all would place the
following command in the user input area when PF1 was entered:
#cp query rdr all The
user would then press Enter for the command to be processed. The default
setting is DELAY for PF keys.QUERY ACCESSED X@ When
you press this PF key, the command is placed in the user input area,
with the cursor positioned following the @logical character delete symbol; you can enter the mode letter of the directory or minidisk you are querying before you press Enter to process the command. If you enter A, the X is deleted, and the resulting command as seen by CMS is QUERY ACCESSED A. For more information on using the logical character delete symbol, see the section on
Logical Line Editing Symbolsin z/VM: CP Commands and Utilities Reference.