Gnucobol, Visual Studio code, SuperBOL Studio and database #404
Replies: 7 comments 15 replies
-
Hello Celso. What do you mean by using a database? Do you mean using |
Beta Was this translation helpful? Give feedback.
-
Dear Boris Eng.
Sim, é isso mesmo, mas já tentei usar o GixSQL, e não obtive sucesso, por
isso perguntei na lista. Vou tentar usar novamente, mas não tenho muitas
informações de como usar e configurar. Como eu já disse, sou um zero a
esquerda em relação a configurar qualquer coisa.
Yes, that's right, but I've already tried using GixSQL, and I wasn't
successful, so I asked on the list. I'll try to use it again, but I don't
have much information on how to use and configure it. As I said, I'm a
complete zero when it comes to configuring anything.
Celso.
Em qui., 13 de fev. de 2025 às 07:42, Boris Eng ***@***.***>
escreveu:
… Hello Celso.
What do you mean by using a database? Do you mean using EXEC SQL
statements in your COBOL programs? If that's what you meant, you need to
use a SQL preprocessor.
For instance, you can use GixSQL : https://github.com/mridoni/gixsql
which supports PostgreSQL, MySQL/MariaDB, Oracle, SQLite and ODBC.
—
Reply to this email directly, view it on GitHub
<#404 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADS6UV27Q5XJB7D6K7CLBVL2PRZKZAVCNFSM6AAAAABXAVCPGGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMJYGYYTQNI>
.
You are receiving this because you authored the thread.Message ID:
<OCamlPro/superbol-studio-oss/repo-discussions/404/comments/12186185@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Dear Boris Eng.
I am almost reaching the goal of integrating all these programs to run
COBOL with SQL, both on Linux Debian 12 and Windows 11. Soon, I will tell
you if I managed to reach this goal.
Celso
Em seg., 17 de fev. de 2025 às 18:13, Boris Eng ***@***.***>
escreveu:
… You have to call the preprocessor to transform the EXEC SQL statements of
your program by using the gixpp command described here:
https://github.com/mridoni/gixsql/blob/main/README.md
Then you have to compile your program with cobc and add a -lgixsql flag.
You can test it on a simple COBOL program then you can tell me if you have
errors.
—
Reply to this email directly, view it on GitHub
<#404 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADS6UV5GBLE6H2M3Z7CNZ732QJGGDAVCNFSM6AAAAABXAVCPGGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRSHEZDSNQ>
.
You are receiving this because you authored the thread.Message ID:
<OCamlPro/superbol-studio-oss/repo-discussions/404/comments/12229296@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Dear Boris Eng. I started trying to use gixpp, with the command: gixpp -e -S -I. -ext ".,.cpy,.CPY" -i TEST001.cbl -o TEST001.cbsql , it already gave an error, because the (-ext ".,.cpy,.CPY") does not exist. What is the correct way to compile. Celso. |
Beta Was this translation helpful? Give feedback.
-
Dear Engboris,
|
Beta Was this translation helpful? Give feedback.
-
Dear Engboris, I've tried everything, but I think I'm missing something regarding environment variables: I tried to use a COBOL program with SQL, together with GixSQL and the result was the one below, where I'm going wrong.
Celso |
Beta Was this translation helpful? Give feedback.
-
Hello Celso. This might be helpful to resolve your problems on Debian: gixpp -e -S -I /opt/gixsql/share/gixsql/copy -I . -i TSQL001A.cbl -o TSQL001A.cbsql
# Notice the new -I flag which indicate where to find the GIXSQL copybook
cobc -x TSQL0001A.cbsql -L /opt/gixsql/lib -lgixsql
# Notice the addition of `/opt/gixsql/lib` after `-L` and the suppression of `lib` after `-l` With these changes you should be able to use gixsql everywhere where the binary is executable, and get rid of your errors. If you'd like more informations, the I think you could also try to run this command on Windows: |
Beta Was this translation helpful? Give feedback.
-
Prezados.
Sou usuário bem básico para gnucobol e VS code e SuperBOL Studio. Ainda estou me ambientando com o VS. Pergunto: Como usar um banco de dados com gnucobol e superBOL?
Dear all.
I am a very basic user of gnucobol, VS code and SuperBOL Studio. I am still getting used to VS. I have a question: How do I use a database with gnucobol and superBOL?
Celso.
Beta Was this translation helpful? Give feedback.
All reactions