Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-79
Using the TYPE Clause
Using TYPE with REGISTER
When you use the TYPE clause with the REGISTER clause, you can only specify
display types that represent 2byte values.
Using TYPE with VALUE
When you use the TYPE clause with the VALUE clause, you must ensure that the
size of the values you provide matches the size of the display type you specify.
Display types CRTPID, DEVICE, FILENAME, FILENAME32, PROCESS HANDLE,
SSID, and USERNAME may not be used with VALUE.
Using TYPE with FOR
When you use the TYPE clause with the FOR clause, the display type in the TYPE
clause overrides the unit in the FOR clause.
Using TYPE with FORMAT and PIC
You cannot use the TYPE clause with the FORMAT or PIC clauses.
Using TYPE with IN
When you use the TYPE clause with the IN clause, the TYPE clause determines
how much data to display and the IN clause determines how to format the data. In
addition, the IN clause cannot be used with the TYPE clause of the DISPLAY
command.
Examples
1. This example displays a TYPE CRTPID.
2. This example displays a TYPE DEVICE.
3. This example displays a TYPE ENV.
4. This example displays a TYPE FILENAME.
-PROGRAM-DISPLAY variable TYPE CRTPID
$Y667 11,53
-PROGRAM-DISPLAY variable TYPE CRTPID FOR 2
$Y667 11,53
$Z534 8,100
-PROGRAM-DISPLAY variable TYPE DEVICE
$DISK
-PROGRAM-DISPLAY variable TYPE ENV
(RP=7,CCG,T) UC.7
-PROGRAM-DISPLAY variable TYPE FILENAME
$DATA.SUBVOL.FILE