System Debug Reference Manual (32650-90888)
Chapter 7 307
Symbolic Formatting Symbolic Access
Using the Symbolic Formatter
RECORD
INT : 4a554e4b
END
We assume the first variant for the CoerceRec and print out the data as an integer value.
We now ask for an explicit variant:
$nmdat > FV addr2 "CoerceRec,1"
RECORD
CH : 'JUNK'
END
We may explicitly ask for the data to be formatted in any of the possible variants. In the
above example we asked for variant 1 (as characters). Notice that since this is a packed
array of char (PAC), the formatter prints the data as a character string. To have PACs
printed as arrays, specify the NOPAC option:
$nmdat > FV addr2 "CoerceRec,1" NOPAC
RECORD
CH : [ 1 ]: 'J'
[ 2 ]: 'U'
[ 3 ]: 'N'
[ 4 ]: 'K'
END
Also note that packed array of Boolean (PAB) are printed as a string of bits. To have such
structures printed as arrays, you can specify the NOPAB options.
$nmdat > FV addr2 "CoerceRec,3"
RECORD
BOOL :
[ 1 ]: 01001010010101010100111001001011
END
$nmdat > FV addr2 "CoerceRec,3" NOPAB
RECORD
BOOL :
[ 1 ]: FALSE
[ 2 ]: TRUE
[ 3 ]: FALSE
.
. <etc for the rest of the array>
.
[ 32 ]: TRUE
END