This article describes how to get information about the Operating System when an ACUCOBOL-GT runtime is executed on a Linux server
How to get information about the Operating System when an ACUCUBOL-GT runtime is executed on a Linux server.
Usually, you can use ACCEPT from SYSTEM-INFO on Windows environments, but this returns only "Unix" when the server is non-Windows.
To get more information from a Linux server, use code like this:
select myfile assign to "-p uname -a"
organization line sequential
file status fs.
01 rec pic x(50).
01 key-pressed pic 9(4) is special-names crt status.
01 fs pic xx.
open input myfile
read myfile next
at end continue