Examples: CRTDDMF command

These examples display different uses for the CRTDDMF command.

Example: Create a DDM file to access a file on a System/38™

CRTDDMF  FILE(SOURCE/SALES)  RMTFILE(*NONSTD 'SALES.REMOTE')
   RMTLOCNAME(NEWYORK)

This command creates a DDM file named SALES and stores it in the SOURCE library on the source server. This DDM file uses the remote location NEWYORK to access a remote file named SALES stored in the REMOTE library on a System/38 in New York.

Example: Create a DDM file to access a file member on an iSeries™ server

CRTDDMF  FILE(SOURCE/SALES)  RMTLOCNAME(NEWYORK)
   RMTFILE(*NONSTD 'REMOTE/SALES(APRIL)')

This command creates a DDM file similar to the one in the previous example, except that now it accesses the member named APRIL in the remote SALES file stored in the REMOTE library on an iSeries server.

Example: Create a DDM file to access a file on a System/36™

CRTDDMF  FILE(OTHER/SALES)  RMTFILE(*NONSTD 'PAYROLL')
   RMTLOCNAME(DENVER)  LVLCHK(*NO)

This command creates a DDM file named SALES, and stores it in the library OTHER on the source server. The remote location DENVER is used by the DDM file to access a remote file named PAYROLL on a System/36 in Denver. No level checking is performed between the PAYROLL file and the application programs that access it. Because the ACCMTH parameter was not specified, the access method for the target server is selected by the source iSeries server when the DDM file is opened to access the remote file.