New record on the deleted record’s space?

2505 pts.
Tags:
Delete
Suppose I have 100 records and I have deleted the 50th record and now I have added a new record, I want that to be on the 50th position. How?

Answer Wiki

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

If you are using REUSEDLT(*YES), it might use that space.
You are better off creating an index for the sequence that you need.

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.
  • TomLiotta
    You could process it as a direct (relative) file and write the record to record number 50. But CharlieBrowne is right -- you are better off creating an index for the sequence that you need. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    We're assuming that this is a DB2 AS/400 question.
    54,020 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: