Hi All,
How to reset the value to zero for "KeyMgtGetNextValue" before my process runs each time?
How to Reset Routine(KeyMgtGetNextValue)?
Moderators: chulett, rschirm, roy
One such example here. However, if your sequence always starts at zero each run then there's really no need to be using a sequence. Why not simply increment a counter?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Each time I need to reject a record or the record is bypassed then audit table is incremented. I am using the Routine KeyMgtGetNextValue
.I will call this function each time when the record is by passed or reject.once the process completed successfully.Next day when I want to run the process I want to reset the KeyMgtGetNextValue
Please let me know how to reset?
.I will call this function each time when the record is by passed or reject.once the process completed successfully.Next day when I want to run the process I want to reset the KeyMgtGetNextValue
Please let me know how to reset?
Did you get this working? If not, are you having an issue with the command itself (which a search would have turned up) or the actual means of how to incorporate it into your processing?
For the latter, it would seem like you could do this either at the very beginning or end of your processing. Do you have a single step that encompasses either end? You could do this 'Before Job' in the first step or 'After Job' in the last step. Or as part of a Sequence job if that is controlling things.
For the latter, it would seem like you could do this either at the very beginning or end of your processing. Do you have a single step that encompasses either end? You could do this 'Before Job' in the first step or 'After Job' in the last step. Or as part of a Sequence job if that is controlling things.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers