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
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