Processes can use any of the following methods to share logical files:
-
An internal task can use logical files declared globally in the parent program, as discussed in Using Global Objects.
-
An initiating process can pass a file as a parameter to a process that it initiates, as discussed in Using Parameters.
-
A WFL job can declare a file and use a global file equation to cause a task to use this file in place of one declared in the task itself. An example of global file equation is given under File Sharing Examples later in this section.
-
A shared library can contain a file declaration that is global to the exported library procedures. You can design the exported procedures to allow user processes to access the file declared globally in the library. Refer to Global Objects in Server Libraries and Global Objects in Connection Libraries in Using Libraries.
If all the processes that use the file belong to the same process family, then you can use any of these sharing methods. If the processes belong to different process families, then using shared libraries is the only method that can enable the logical file to be shared.

