My recollection:
Restructure will only alter the contents of records; either data and/or
prefix portion. It will not adjust set order, only an UNLD/RLD (or
rebuild
for an indexed set) will accomplish that.
If the set is not already in sort order, you MAY have issues with
updating
the data once you define it as sorted. You're probably OK as long as
you
don't do something that would cause IDMS to want to process the set
sequence
(e.g., FIND/OBTAIN USING, STORE, MODIFY).
This last is where you're liable to run into issues. If you have
already
defined the set as sorted, and then go in an MODIFY the sort field
contents,
IDMS may ""notice"" the set is not correctly ordered, and you MAY have a
problem (This is pure guesswork; anybody else want to chime in?).
Safest sequence is:
RSTU the new fields.
MODIFY to get all the right data established.
Define the set order as sorted.
UNLD/RLD.
As Bill points out, you can accomplish the final two steps together,
with an
exit to the UNLD/RLD... but that isn't necessarily trivial.
Don Casey
Unattached