DUMP command

Displays the contents of a file, or the current record, in hexadecimal, ASCII, and EBCDIC character encodings.

Note

This command can only be entered in the command line. It cannot be used in scripts.

Syntax

DUMP {RECORD|file_name} <SKIP bytes> <COLUMN bytes> <HORIZONTAL>

Parameters

Name Description
RECORD

Displays the contents of the selected record.

Required if you do not specify a file_name.

file_name

The name of the file you want to display.

Required if you do not specify RECORD.

Note

To display the character encodings for an Analytics table you must specify the name of the source data file and the file extension. For example: Ap_Trans.fil

SKIP bytes

optional

The number of bytes to bypass before the dump begins. The default is 0.
COLUMN bytes

optional

In the output, the width of the columns in bytes.

Note

The number specified by bytes refers to the bytes contained by the Analytics record or table.

The encoded characters in the output may not have a one-to-one relation with the characters in the view. For example, the hexadecimal encoding for the number 1 is 31.

The default is 16 bytes for each column in a vertical display, and 64 bytes for the single column in a horizontal display. The maximum number of bytes you can specify is 255.

HORIZONTAL

optional

Displays the character encodings in horizontal rows rather than in side-by-side vertical blocks (the default).

Examples

Display the character encoding of the Inventory table

The example below displays the hexadecimal, ASCII, and EBCDIC character encoding of the data in the Inventory table. The output is arranged in horizontal rows (hexadecimal encoding uses a double row). Each row represents 97 bytes of data in the Analytics table:

DUMP Inventory.fil COLUMN 97 HORIZONTAL