How to use the DDM File in RPGLE Programs?

1215 pts.
Tags:
AS/400
DDM
RPGLE
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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
  • rajeshece
    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,215 pointsBadges:
    report
  • CharlieBrowne
    This link will explain a possible authority problem. http://archive.midrange.com/rpg400-l/201004/msg00108.html
    41,370 pointsBadges:
    report
  • Adamwkiuk2002
    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 pointsBadges:
    report
  • rajeshece
    I am getting CPF3295 Error Messages
    1,215 pointsBadges:
    report
  • Cwc
    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,290 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following