[Info-vax] VMS Software: New US Mailing Address
Arne Vajhøj
arne at vajhoej.dk
Thu Oct 13 19:00:17 EDT 2022
On 10/13/2022 5:40 PM, Jan-Erik Söderholm wrote:
> Den 2022-10-13 kl. 02:14, skrev Bill Gunshannon:
>> On 10/12/22 19:22, Arne Vajhøj wrote:
>>> On 10/12/2022 6:58 PM, Bill Gunshannon wrote:
>>>> I would love to have someone send me a COBOL
>>>> program that uses RDB just for a look-see.
>>> An extremely simple Cobol embedded SQL to Rdb example:
>>> https://www.vajhoej.dk/arne/articles/vmsdb.html#rdb_cob_emb
>>
>> I saw nothing in there that would not compile using ESQL and GnuCOBOL
>> with PostGres. Even the module stuff (which I am not familiar with)
>
> Think of it as a compiler for a language called "SQL".
> The default file type for these files (on VMS) is .SQLMOD
>
> It's more or less "just" as a compiler for any other language.
> And it creates a object files that are no different from any
> other object file, may it come from C, Pascal or whatever.
>
> That object file can then be linked into any other application
> following the VMS calling standard. That other language does not
> need to have any native support for Rdb, it just has to follow the
> VMS calling standard.
>
> It is just a function call with some parameters that returns some
> defined result. The caller does not need to know that it was Rdb
> that returned the result.
Embedded SQL and SQL Modules are different.
The first is pretty standard - the second is as far as I know Rdb specific.
ESQL is embedded SQL.
Arne
More information about the Info-vax
mailing list