1,025 pts.
 How to use the DDM File in RPGLE Programs?
I have created one DDM File in Server1 Based on Server2 File. I wrote one program to read the DDM File in Server1. I am getting RNF2120 (File Not found) While Compiling the Program. How to USe the DDM File in RPGLE Programs?

Software/Hardware used:
AS400
ASKED: June 21, 2010  9:08 AM
UPDATED: June 24, 2010  4:35 PM

Answer Wiki:
Your RPG code does not neet to know it is a DDMF. You do you coding just as you would with any other file. If you getting a FILE NOT FOUND on the compile, I would suggest you do not have the DDMF object in a library that is in your library list.
Last Wiki Answer Submitted:  June 21, 2010  8:57 pm  by  CharlieBrowne   32,915 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,915 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I have created one DDM Object in MYLIB. I declared that File in RPGLE Program like a normal File. I have included the MYLIB in Library List. Still I am getting the RNF2120 Error . PLease help me t solve this issue.

 1,025 pts.

 

This link will explain a possible authority problem.
http://archive.midrange.com/rpg400-l/201004/msg00108.html

 32,915 pts.

 

The other problem could be that the file the DDM is poining to does not exist, so the compiler can not retrieve the definition.

 215 pts.

 

I am getting CPF3295 Error Messages

 1,025 pts.

 

If you run the DSPMSGD command, to view the text for the CPF3295 message, it gives some guidance:

Message . . . . : Cannot extract or remove members on DDM file &1 in &2.
Cause . . . . . : Either this system, or the target Distributed Data
Management (DDM) system detected a condition that caused the extract or
remove member request to fail.
Recovery . . . : See the previous messages in the system log to analyze the
conditions that caused the failure. Make the needed corrections, and then
try the request again.

So, look in your job log to see what previous messages were issued that will probably tell you the exact cause of the problem. It could be that the local system can’t retrieve the physical file attributes from the remote system, due to a security or configuration issue.

 4,275 pts.