5 pts.
 AS400 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?

Software/Hardware used:
ASKED: January 27, 2011  12:05 PM
UPDATED: January 27, 2011  7:46 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  January 27, 2011  3:46 pm  by  CharlieBrowne   32,835 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,835 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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

 108,055 pts.