AS400 Logical files

5 pts.
Tags:
AS/400
AS/400 - DDS
AS/400 Data File
Logical Files
I have added a data member to the physical file. But the in logical file it is not accessing the newly added data member. Could any one help me, what should i need to do to access the new data member data through logical file without compiling the logical file?

Answer Wiki

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

When a LF is created, the specific members which are to be included from the PF are identified.
Do you want one LF over all members in the PF, or multiple LF; one for each member in the PF?
If it is one LF for all members, you have 2 choices.
1. Recreate the LF everytime a new member is added to the PF.
2. Change the PF to be a single member file. Since you wanted these in single members, you would probably need to add a field to identify which the old distingushing break for members.

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    what should i need to do to access the new data member data through logical file without compiling the logical file? What's the problem with recompiling the LF? At the worst, even if you don't have the original source, you can retrieve the attributes of the current LF and use them as specifications for the compile. You might be unable to run the compile at a given moment because the file is in use, but you'll have the same locking problem if you try to change the LF's underlying structure. Just recompile and move to the next problem. I don't know of a clear way of changing the structure without recreation. You might try adding a member with ADDLFM to the LF that references *ALL members of the PF and then removing the original member with RMVM, and finally renaming the new member to the original member's names. Overall, a straight recompile seems far simpler and less error prone. Tom
    125,585 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