CRTDTAARA (Create Data Area) command

The Create Data Area (CRTDTAARA) command creates a data area and stores it in a specified library. It also specifies the attributes of the data. The data area can be optionally initialized to a specific value.

You can create a DDM data area by specifying *DDM on the TYPE parameter. The DDM data area is used as a reference data area by programs to access data areas located on a remote (target) server in the DDM network. Programs on the local (source) server reference a remote data area by the DDM data area's name, not by the remote data area's name. (The DDM data area name can be the same as the remote data area name.)

The DDM data area (on the source server) contains the name of the remote data area and the name of the remote (target) server on which the remote data area is located.

The DDM data area can be used with the Retrieve Data Area (RTVDTAARA) command and the Change Data Area (CHGDTAARA) command to retrieve and update data areas on remote servers. A DDM data area can also be used with the Retrieve Data Area (QWCRDTAA) API.

Consider the following items when using this command with DDM:

Consider the following restrictions when using this command with DDM:

 Data area . . . . . . . :     DDMDTAARA
 Library . . . . . . . :        DDMLIB
 Type    . . . . . . . . . :   *DDM
 Length    . . . . . . . . :   62
 Text    . . . . . . . . . :   'This is a DDM data area'
 
           Value
 Offset        *...+....1....+....2....+....3....+....4....+....5
    0         '*LOC      *NETATR SYSTEMA *LOC    *LOC    LCLDTAAR'
   50         'A LCLLIB    '

Use the following chart to interpret the values:

Table 1. Offset values
Offset DDMDTAARA fields
1-10 DEV
11-18 MODE
19-26 RMTLOCNAME
27-34 LCLLOCNAME
35-42 RMTNETID
43-52 RMTDTAARA (name)
53-62 RMTDTAARA (library)
Related concepts
Control language