READ & READE with SETLL

195 pts.
Tags:
AS/400
What is major difference between READ & READE, when should we use READ & READE with SETLL?
0

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.

Discuss This Question: 2  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.
  • TheRealRaven
    READ returns the next record after the current file position. READE returns the next record after the current file position IF the next record's key value is equal to the key value specified or, if the key value is not specified, the next record key matches the current record key.

    In both cases, an EOF condition will be signalled when there is no appropriate next record.

    As for when you use them, you use them when you want your program to do what the statements are designed to do. If you want the next record no matter what it contains, use READ. And if you want the next matching record, use READE.
    35,730 pointsBadges:
    report
  • ToddN2000
    Raven covered the READ and READE. The SETLL is used when you want to position the pointer in the file. If you use *LOVAL will set it to the lowest value of the keyed index. You can also specify a key list or a key value as a starting point.
    133,870 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.

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

Following

Share this item with your network: