gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ESQL for ODBC for GnuCobol - improvement request on comment rows


From: Simon Sobisch
Subject: Re: ESQL for ODBC for GnuCobol - improvement request on comment rows
Date: Thu, 2 Feb 2023 14:26:02 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1


Am 02.02.2023 um 14:14 schrieb gidesa@interfree.it:
Simon, thank you for answering.
I am using the program downloaded from:

http://www.kiska.net/opencobol/esql/

It seems those are quite new.

You find the source code for esqlOC at
https://sourceforge.net/p/gnucobol/contrib/HEAD/tree/trunk/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.

If you cal the binary without any option you get a short help, but that
does not include the not-implemented -free.

I'll add a --help because that's an easy thing to do.

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.

I see.

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.

I see. Actually cobc handles mixed-format sources quite well, but you
have to tell it about that each time you "switch".

So to have this working you'd need to use "esqloc -free" and "cobc
-free" - and have no "mixed source" within the program.

But cobc and esql are amazing software!

Thanks!

Giandomenico

I'll write to this list as soon as I have something to test (= updated
code in the given svn repository), likely in the next few hours.

Would you need binaries or could you build from a source tarball (no ned
to answer that to the mailing list ;-) ?

Simon

Il 02/02/2023 13:31 Simon Sobisch ha scritto:
Am 02.02.2023 um 11:49 schrieb gidesa@interfree.it:
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]