You can also use the CMS SVCTRACE command and the CP TRACE commands
to see a record of interruption activity in your virtual machine.
The DEBUG subcommands and the CMS and CP debugging
described in more detail in "Section 11. How VM/370 Can Your Programs.
1I
Commands to Request Information
facilities are
Help You Debug
All of the CP and CMS commands discussed in this section have required
some action on your part: you set your terminal characteristics,
manipulate disk files, develop, compile, and test programs, and control
your virtual machine devices and spool files. During a terminal session
you can change the status of many of your devices and virtual machine
characteristics, modify the files on your disks and create spool files. VM/370 provides many commands to help you find out what is and what is
not currently defined in your virtual machine. COMMANDS TO REQUEST INFORMATION ABOUT TERMINAL CHARACTERISTICS You can find out status of your terminal characteristics by using
the CP command QUERY with the TERMINAL or SET operands. If you issue the
command:
cp query terminal
you can see the settings for all of the functions controlled by the CP TERMINAL command, including the current line size and line editing
symbols.
Similarly, the command: cp query set
tells you the settings for the functions controlled by the CP SET command, such as error message display, and the MSG and WNG flags.
For most of the functions controlled by the CMS SET command, there
are corresponding CMS QUERY command operands; to find out a particular
setting, you must specify the function in the QUERY command. For
example:
query input
lists the current settings in effect for input character translation. Other functions that you can query this way are: BLIP IMPCP IMPEX INPUT OUTPUT RDYMSG 38 IBM VM/370 CMS User's Guide REDTYPE SYNONYM
TO REQUEST ABOUT DATA FILES Use the LISTFILE command to get information about CMS files. The
information you can obtain from the LISTFILE command includes: The names of all the files on your A-disk:
listfile The names of all the files on any other accessed disk:
listfile * * b The names of all files that have the same filename:
list file myprog * The names of all files with the same filetype:
listfile * assemble The record length and format, blocksize, creation date and disk label
for a particular file:
listfile records saved a2 (label Use the STATE command to find out whether a certain file exists:
state sales list c
If you want to know if the file is on a read/write disk, you can use the STATEW command.
To find out what CMS libraries have been made available, you can use
the commands:
query doslib
query maclib
query txt lib query library
To find out what members are contained in a particular macro or text
library use the commands:
maclib map mylib (term
txt lib map proglib (term
The MODMAP command displays a load map of a MODULE file:
modmap payroll
To examine load maps created by the LOAD command, use the TYPE command:
type load map as
The TYPE command can also be used to display the contents of any CMS file. To examine large files, you can use the PRINT command to spool a
copy to the high-speed printer.
To compare the contents of two files to see if they are identical,
use the COMPARE command:
compare labor stat a1 labor stat b1 Section 3. What You Can Do With Commands 39
Previous Page Next Page