ILE C programs can refer to DDM files.
Generally, DDM file names can be specified in ILE C programming
language anywhere a database file name can be specified, for both iSeries™ and non-iSeries target
servers.
Specify DDM file names on the Create C Program (CRTCPGM) command
to do the following items:
- Access remote files on an iSeries or
non-iSeries server that contains
source statements. To do this, specify a DDM file name on the SRCFILE parameter,
and a member name on the SRCMBR parameter.
Notes: - For iSeries or System/38™ target systems, you access
a remote iSeries or System/38 source file (or member) in
the same manner as a local source file and member.
- For non-iSeries target
servers, access a remote source file by using the same file name for the SRCMBR
and the SRCFILE parameters.
- Place the compiler listing in a database file on a target server. To do
this, specify a DDM file name on the PRTFILE parameter of the CRTCPGM command.
When using ILE C programming language, consider the following
items:
- If the target system is not an iSeries server or
a System/38, you can specify
a DDM file name as the include file on the #INCLUDE source directive statement,
but the member name must be the same as the DDM file name.
- ILE C programming language only supports sequential I/O operations.
- Although ILE C programming language does not directly support keyed files,
key exceptions might occur if you are using a keyed file.