Question on Physical Files & Logical Files

560 pts.
AS400 physical file
Logical Files
Hi Group, I have a Physical file. I created a Logical file on it with a key field as Primary key. Later as per the new requirements i created a LF with composite key as primary key. Should i make any changes to the LF that was created earlier??

Answer Wiki

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

Are you still waiting for an answer on this or is your question resolved.

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.
  • BigKat
    was the second logical a replacement for the first (first: fld1 second: fld1, fld2, fld3) or was it an alternate lookup (first: fld1 second: fld2, fld3). If an alternate, there is no need to make a change. If a replacement, you could get rid of the first, or just recreate it with the composite key instead of adding the second logical. You do not need to use all of the keys in a logical, as long as you are using the first x keys (if logical fas keys of fld1, fld2, fld3 you can also use that logical to search by just fld1 or just fld1, fld2 -- you cannot search just by fld2 or just fld3 or just fld2, fld3)
    9,460 pointsBadges:
  • mvrkrishna
    Hi Bigcat, Sorry for the confusion created by me. It was un-intentional. Based on the first LF1 (fld1 Primary key) , I added few records. Now I created a second LF2 with composite primary key(fld1 & fld2 are primary keys). I add records through LF2. There is a possibility that i violate the very definition of LF1. How to encounter this? As per my requirement I need both the Logical files. I cannot delete the LF1.
    560 pointsBadges:
  • YuVa47
    You can keep LF1 for what it was created for and you can of course keep LF2 as well. Furthermore you can use both in the same and/or different programs. YuVa
    1,300 pointsBadges:
  • WilsonAlano
    When you talk about "Primary Key" we can assume you''ve used the UNIQUE keyword when creating the first LF right? If it's true you can not violate the definition of the first LF. SO will not allow duplicate keys for the first LF no matter which file you use to add to (LF1, LF2 or direct to physical). Wilson
    2,710 pointsBadges:
  • Featured Member: YuVa47 - ITKE Community Blog
    [...] Question on physical files & logical files [...]
    0 pointsBadges:

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.

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


Share this item with your network: