Key list in AS/400

10 pts.
Tags:
AS/400
AS/400 logical file
 I have defined 3 keyfields in my logical file and I'm using them in my program as keylist parameters. Is it possible to perform chain operation using first and third keyfield? If not can you please tell me the other alternative?


Software/Hardware used:
os400

Answer Wiki

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

Discuss This Question: 4  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
  • TomLiotta
    If an index exists that consists of your first and third key fields, then you can use those fields to CHAIN against the LF that has that index. Otherwise, there's no index to CHAIN against. If no LF exists, you have to create one. -- Tom
    125,585 pointsBadges:
    report
  • WoodEngineer
    It appears that you are asking about using the first and third keyfields to chain to your file using your three keyfield logical.  The system does not allow a keyfield to be skipped in the midst of other keyfields, which would be the second keyfield in your example.  Keyfields which follow the last specified keyfield can be skipped.  For example, you could specify keyfield 1, or keyfields 1 and 2, or all three but you can not specify keyfields 1 and 3, or 2 and 3.
    6,435 pointsBadges:
    report
  • RamvishakRamesh
    Option 1. Create an LF with the keys that you want Option 2. Use Opnqryf Option 3. Use embedded SQL
    2,505 pointsBadges:
    report
  • TomLiotta
    "Option 3. Use embedded SQL" . SQL doesn't allow a CHAIN operation. . 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