A remote data area is a data area on a remote server.
You can access remote data areas by using Distributed Data Management (DDM). You do not need to change or recompile an application program that resides on one server when it retrieves data that resides on a remote server. To ensure that you are accessing the correct data area, you may need to do one of the following:
You can create a DDM data area by doing the following:
CRTDTAARA DTAARA(LOCALLIB/DDMDTAARA) TYPE(*DDM) RMTDTAARA(REMOTELIB/RMTDTAARA) RMTLOCNAME(SYSTEMB) TEXT('DDM data area to access data area on SYSTEMB')
To use a value from a data area on a remote server in a CL program, use the Retrieve Data Area (RTVDTAARA) command. Specify the name of a DDM data area to bring the current value into a variable in your program. If you change this value in your CL program and want to return the new value to the remote data area, use the Change Data Area (CHGDTAARA) command and specify the same DDM data area.
If you specify the name of a DDM data area when using the Display Data Area (DSPDTAARA) command, the value of the DDM data area is displayed, rather than the value of the remote data area. You can delete a DDM data area using the Delete Data Area (DLTDTAARA) command.