Calculating a database

How can I use a process to calculate a database, and put the sum in a global field?

“Calculate a database” doesn’t make a lot of sense in English; probably a translation problem.

If you are using ISAM (like TPS) files, then you can use a process template to loop through your file, and in TakeRecord you put:

GLO:total = GLO:total + file:whateverfieldyouwant

If you have a SQL database, then look at the other thread about SUM()