CL Command Reference - CHGDDMF

CL Command List > CHGDDMF Reference

Description:

The Change Distributed Data Management File (CHGDDMF) command changes, in the distributed data management file (DDM) description, one or more of the attributes of the specified DDM file. The DDM file is used as a reference file by programs on the iSeries system to access files located on any target system in the iSeries system DDM network.


Examples:

The following examples describe the changing of a DDM file.

Example 1: Changing the Communications Mode System

CHGDDMF FILE(SOURCE/SALES) MODE(MODEX)

This command changes the communications mode for the DDM file named SALES stored in the SOURCE library on the source system. The mode is changed to MODEX.



Example 2: Changing a DDM File to Access a File through TCP/IP

CHGDDMF FILE(OTHER/SALES) RMTLOCNAME(ROCHESTER.XYZ.COM *IP)
PORT(*DRDA)

This command changes the remote location name for the DDM file named SALES stored in the OTHER library on the source system. The remote location is changed to the TCP/IP host having the domain name of ROCHESTER.XYZ.COM. The host listens on the standard DRDA port of 446.



Example 3: Changing a DDM File to Access a File through TCP/IP using Dotted Decimal IP Address and a Numeric Port Number

CHGDDMF FILE(OTHER/SALES) RMTLOCNAME(กฏ9.5.36.17กฏ *IP)
PORT(5021)

This command changes the remote location name for the DDM file named SALES stored in the OTHER library on the source system. The remote location is changed to the TCP/IP host with the IP address of 9.5.36.17. The host listens on port 5021.