Simon, thank you for answering.
I am using the program downloaded from:
http://www.kiska.net/opencobol/esql/
I have not seen documentation on the -free option
in the site. Nor there is an --help option.
Perhaps documentation is straight in the source.
Anyway, I wrote to the list because indeed I have cobc
refusing to compile a source precompiled by Esql with ">>SOURCE FREE",
but with the regular comment at column 7.
Cobc doesn't admit mixed comment styles also in free format,
nor have a specific error/hint message.
So was a bit tricky understand the cause of errors.
But cobc and esql are amazing software!
Giandomenico
Il 02/02/2023 13:31 Simon Sobisch ha scritto:
Am 02.02.2023 um 11:49 schrieb gidesa@xxxxxxxxxxxx:
Hello,
I have tested the ESQL for ODBC preprocessor with Firebird database,
and it works perfectly. Thanks!
:-)
I have a request. Esql add some comment rows to original source.
These comments have an asterisk * at column 7. This is good for
Cobol fixed format. But it not works with the modern free format.
If the comments start from column 7, as now, and BEGINS WITH *> then
they will work with fixed format and free format.
Anyway, Esql is a great program.
Thank to Sergey!
Giandomenico De Sanctis
Rome - Italy
esqloc already has a "-free" option - but this only returns "not
implemented yet".
The reason is likely that it is a bit more complicated than just
adjusting the output - because esqloc:
* also needs to _recognize_ comments
* needs to handle lines > 72 character positions in free format
But I'll give the implementation a try with the additional rules:
* all sources processed together have to be in either fixed or free
format
* you explicit have to specify -free if that is used (no recognition of
SOURCE FORMAT directive)
Simon