Examples: Code DDM-related tasks
The examples in this topic collection are based on representative application programs that might be used for processing data both on the local iSeries™ server and on one or more remote servers.
The first example is a simple inquiry application, and the second example is an order entry application. The third example accesses multiple files on multiple iSeries servers. The fourth example accesses multiple iSeries servers and a System/36™.
The coding for each of these examples and tasks has one or two parts:
- Coding, shown in pseudocode form, not related to DDM but used to build the programming environment. The examples show you the task steps needed, independent of the language you use for your applications. You can write or adapt your programs in your language with the necessary coding to perform these or similar tasks.
- Coding, mostly done in CL, related to communicating with the other servers using DDM in the network.
References are made to other parts of this topic collection and to other topics for additional information that is helpful in understanding or using these examples.
- Communications setup for DDM examples and tasks
These topics describe the network in which DDM is used for these task examples.
- DDM example 1: Simple inquiry application
This first example shows how multiple locations in a customer's business might be processing the same inquiry application on their own servers, using their own primary files. Without DDM, the two locations shown here (Chicago and Toronto) have their own primary file (CUSTMAST), both with different and duplicate levels of information.
- DDM example 2: ORDERENT application
This second example shows how multiple locations in a customer's business can process the same order entry application using DDM.
- DDM example 3: Access multiple iSeries files
Using the same communications environment as in the previous examples, this example is used to ask inventory questions of identically named files on the two remote iSeries servers and the remote System/38™.
- DDM example 4: Access a file on System/36
This topic shows how the pseudocode program for the previous task can be changed so a MASTER file on the System/36 in Dallas can be accessed in the same way as the MASTER files on the iSeries servers and System/38 in Example 3.
Parent topic:
Distributed data management
Related reference
Perform file management functions on remote servers