The HEXDSK command lists a file on a sector-by-sector basis no matter what type of file structure the file has. When it executes the HEXDSK command, DUMPALL ignores the file attributes for MAXRECSIZE and BLOCKSIZE. The listing of the file includes those areas of the file that are not normally accessible to programs, such as gaps between blocks and any part of a sector that includes the end-of-file (EOF) character that is past the actual EOF. The HEXDSK command lists a file both in hexadecimal format and in ASCII or EBCDIC. If the EXTMODE value of the file is ASCII, the second list is in ASCII; otherwise, the second list is in EBCDIC.
Syntax
── HEXDSK ─┬─<file title>──────┬─┬──────────────────────┬──────────────┤ └─<long file title>─┘ ├─<record range list>──┤ └─<skip specification>─┘
Explanation
HEXDSK <file title>
HEXDSK <long file title>
Lists the entire file in hexadecimal and EBCDIC formats.
Specifies a group of records to be processed. Refer to “Record Range List” later in this section for more information about <record range list>.
Causes only the portion of the file specified by the record range list or skip specification to be listed. In this command, the record range list and skip specification refer to sectors instead of records. The first sector of a file is sector number 1. Refer to “Skip Specification” later in this section for more information about <skip specification>.
Example
The following example shows both the input to and the output from a HEXDSK command. The output is of sector 4 of the disk file MYFILE/TEST. DUMPALL writes the text in word-sized chunks in EBCDIC and then in hexadecimal.
HEXDSK MYFILE/TEST REC 4 SECTOR NUMBER: 00004 EBCDI C ARRA Y ANAM E [0:2 5]; 40C5C2C3C4C9 C340C1D9D9C1 E840C1D5C1D4 C5404AF07AF2 F55A5E404040 404040404040 404040404040 404040404040 404040404040 404040404040 000002 30 404040404040 404040404040 F0F0F0F0F0F2 F3F040404040 404040404040 TRUTH SET NU MBERS ("0123 456789 40E3D9E4E3C8 E2C5E340D5E4 D4C2C5D9E240 4D7FF0F1F2F3 F4F5F6F7F8F9 "); 7F5D5E404040 404040404040 404040404040 404040404040 404040404040 000002 35 404040404040 404040404040 F0F0F0F0F0F2 F3F540404040 404040404040