Cobol program SFPREFND issue
At times I have a user that runs this process and it runs just fine processing lots of data and ends within 2 minutes. At other times it can take extremely long, where at 1 1/2 hours it finally finishes, and the population might not be that many.
I have noticed that this particular user runs it for a list of account_types (stored in run_cntl_sf_ac table) where as I have other institutions run it where they include all accounts and it always runs fast for them.
It appears to be hitting the sql SFPREFND_S_BOTMACI, and this is where the dba teams says it is here that it hits a bottleneck. Anyone have any suggestions on how to fix this issue, if there is any?