Finally i had some spare time to work on dbpre again and was able to fix most of the errors Mario reported.
SQL statements with a * in column 7 are not preprocessed.
SQL commands just in the line of EXEC SQL are processed now, but:
END-EXEC must be a separate line right now.
END-EXEC or END-EXEC. (with a dot) are now understood by dbpre, but whatever, no dot '.' will be created by dbpre, so keep that in mind, if you're still writing COBOL programs in the ancient style from 1000 years ago with dots at the end of every statement!
(dbpre still processes lines, and not words, so writing COBOL in a totally unreadable style is not the best idea to use dbpre. Somehow it expects that a statement begins at a single line.)
Don't know if i will change that or not, we will see..
Now my problem is to change the cobmysqlapi.c file, so that it works both for GnuCOBOL 1.xx and 2.xx as well, which means, that i have to uninstall 1.xx and install 2.xx on my desktop comp, since i am not willing to set up another comp with a different cobol version.
Simple reason why: my desk is crowded, no space left for putting there another laptop :P