View previous topic :: View next topic
|
Author |
Message |
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Quote: |
You can also think about using command code L to retrive the last occurance of the child segement directly... |
I said simple and straightforward. Always program so that your code is easily maintainable - think of that next person. |
|
Back to top |
|
|
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
Quote: |
said simple and straightforward. Always program so that your code is easily maintainable - think of that next person. |
But i read somewhere, that each DLI call is costly. So we should try saving dli calls.
Yes, but when it comes to maintainability, I am not very sure how the command code would be interpreted if there is a change in underlying database organisation, especially if underlying database is a HS (Hierarchical sequential) database, given that it does not use pointers. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
What do you think IMS is doing behind the scenes? That database org will not be changing to HS - take my word.
Try it anyway you can think of - then pick the best. |
|
Back to top |
|
|
|