Example: DDM file that opens a specific member

A specific file member can be specified in the RMTFILE parameter, which is used only on the Create DDM File (CRTDDMF) and Change DDM File (CHGDDMF) commands, by using the *NONSTD value followed by the file, library, and member name.

This allows an application program to process a member other than the first member (*FIRST) without using file overrides. However, if the program requires redirection to more than one member, overrides should be used. Also, programs that already use overrides to specify members of local files should continue to do so, even if overrides to remote files are also used; otherwise, programs that worked locally would no longer do so. If the RMTFILE parameter contains a member name and an override with a different member name is in effect, the file open requests fails.

Note: If you press F4 (Prompt) on the Create DDM File or Change DDM File display, and specify the *NONSTD value with the remote file name abcde, the server converts abcde to 'ABCDE' (all uppercase) and the request is processed. However, if there is a slash or parenthesis in the remote file name, the server puts single quotation marks around the name but does not convert it to uppercase. Therefore, if you are using the *NONSTD value for the remote file name and the target server requires uppercase file names, type the remote file name in uppercase characters even when using F4 (Prompt).
CRTDDMF   FILE(DDMLIB/RMTCAR)  RMTFILE(*NONSTD
   'SALES/CAR(JULY)')  RMTLOCNAME(CHICAGO)

When a program opens the DDM file named RMTCAR on the source server DDMLIB library, the target iSeries™ server opens the member JULY in the file SALES/CAR.