DDM Direct (Relative) File Support
An OS/400 server does not support direct files as one of its file types.
(An OS/400 server creates direct files as sequential files.) However, an ILE COBOL program
on an OS/400 server can specify that a file be accessed as a direct file by
specifying an organization of RELATIVE on the SELECT statement.
Keep the following in mind when working with direct files on the iSeries:
- If a file is created on the local OS/400 server as a direct file by a
program or user from a non-OS/400 server, the file can be accessed as a direct
file by a ILE COBOL program from a remote non-OS/400 source server.
- If a file is created on the local OS/400 server by a program or user on
the same OS/400 server, it cannot be accessed as a direct file by a non-iSeries because
the OS/400 target server cannot determine, in this case, whether the file
is a direct or sequential file.
- Any files created by a remote system can be used locally.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.