These examples show how access to a DDM file becomes an indirect reference (by using DDM) to a member of a file on a remote iSeries™ server. These examples are iSeries server-to-iSeries server examples.
CRTDDMF FILE(DDMLIB/RMTCAR) RMTFILE(SALES/CAR) RMTLOCNAME(CHICAGO) OVRDBF FILE(FILE1) TOFILE(DDMLIB/RMTCAR) MBR(TEST1) OVRDBF FILE(FILE2) TOFILE(DDMLIB/RMTCAR)
This example shows the creation of the same DDM file as in the previous examples. Then, OVRDBF commands are used to override two local files named FILE1 and FILE2 with the local DDM file RMTCAR. When an application program attempts to open the files, the DDM file DDMLIB/RMTCAR is opened twice instead. (FILE1 and FILE2 are not opened.)
CLRPFM FILE(DDMLIB/RMTCAR) MBR(FRED)
This command clears, by using the DDM file named DDMLIB/RMTCAR, member FRED of the file SALES/CAR on the target server.