Displaying Fields in Character Format

You can use the EVAL debug command to display a field in character format. To display a variable in character format, type:

EVAL field-name: c number-of-characters

on the debug command line. The variable field-name is the name of the field that you want to display in character format. 'c' specifies the number of characters to display.

For example, in the program DEBUGEX, data structure DS2 does not have any subfields defined. Several MOVE operations move values into the subfield.

Because there are no subfields defined, you cannot display the data structure. Therefore, to view its contents you can use the character display function of EVAL.

EVAL DS2:C 20              Result:   DS2:C 20 = 'aaaaaaaaaabbbbbbbbbb'


[ Top of Page | Previous Page | Next Page | Contents | Index ]