Ask the Expert

Are DDM files the best choice?

I have a RPG IV program that uses DDM files and local files at the same time. This program is being called from a CL that starts commitment control with level of record locking *CHG and scope *ACTGRP.

The program crashes when it's trying to open a local file, and the error message says that I can't place a local file under commitment control when commitment control is active at a remote, one-phase, updateable location.

The DDM files are being accessed through TCP/IP (RMTLOCNAME = IpAddress *IP). V5R1 is the release level of the system. How can I solve this problem?

Since DDM does not support two-phase commitment control, the only way to solve the problem is to use DRDA & SQL instead of DDM files. The Distributed Database Programming manual, should get you started.

=================================='s targeted search engine: Get relevant information on DB2/400.

The Best Web Links: tips, tutorials and more.

Check out this Featured Topic: Database issues resolved

This was first published in July 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: