CL Command Reference - DSPDTAARA

CL Command List > DSPDTAARA Reference

Description:

The Display Data Area (DSPDTAARA) command shows the attributes and value of the specified data area. The following attributes are displayed: the type and length of the data area, the library where the data area is located (there is no library associated with a local data area, the group data area, or the program initialization parameter data area), and the text describing the data area.

Restrictions:

1. To use this command, the user must have use (*USE) authority for the data area and execute (*EXECUTE) authority for the library. No specific authority is required for the local data area, group data area, or program initialization parameter data area.


Examples:

Example 1: Displaying Output in Hexadecimal and Character Format

DSPDTAARA DTAARA(HEXDATA) OUTPUT(*) OUTFMT(*HEX)

The value and attributes of data area HEXDATA are displayed if the user has proper authority. Both character and hexadecimal representations are shown.



Example 2: Displaying Output in Character Format

DSPDTAARA DTAARA(TIME) OUTPUT(*)

The value and attributes of the data area TIME are displayed if the user has the proper authority. The library list is used to find the data area.