Application name: cpul2-1.cmd

What it does ?,
 It serves to reduce SYS3175 errors of Dbexpert, and perhaps other applications with a similar problem.
That results in the unexpected closure of the application.

How does it work:
Read the cpu, with the program cpu.exe that is in Arca50 or higher. Calculate a percentage of use of the CPU, and find the most appropriate time 
to launch the desired program. Because of this, it does not repair anything and does not modify anything. 
It also does not guarantee 100% reliability in the target, but it reduces errors by approximately 90 to 95% o more.
*In cpul2-1 this is 99% free of error.

What do you need to use it:
Arca50, or have the pcu.exe program installed. I have not tried it on ecs.
Can not run on 4os2 only on os2 comman com

How to use it in the Dbexpert:
1- Create a macro with the name you want. Similar to Mcpul2.
2- Make a copy paste of the text of cpul2.cmd, and put it in new macro, save.
3- Make a call to this macro, from any other macro in the dbexpert, just before the problematic process. Similar to:
rc = dbeopen ('macro', 'mcpul2')

Improvable things:
Read the number of installed processors, and calculate the average with more values. And others....

Author: Roberto Gainza