Is there a way to 1) utilize the *time-out variable in a Natural BATCH program, or 2) obtain the value of the Transaction Time Limit in a Natural batch program.
I have a Natural batch program that will read a large sequential flat file (100 million records). For approximately 10% of those records the program will do a Find\update against an ADABAS file (only a small percentage of the Finds will result in an update). If I do my End Transaction based on the Find count, the program could time out. If do an End Transaction based on sequential read count, the program may be performing End Transactions for very few held records. It seems the better alternative would be to use a combination of the Find Count and the *time-out value (IF Find-Count > 200 or *time-out < 60)
However, I see that the *time-out variable is only available in Natural security. I could create my own *time-out value with the Settime statement, but would have to hardcode the Transaction Time Limit, unless the batch program can somehow obtain that value.
Any Feedback would be appreciated.