https://formulae.brew.sh/formula/gnucobol
brew search cobol
install you find formulae.
brew install gnucobol
% cobol -v
cobc (GnuCOBOL) 3.2.0
Built Jul 28 2023 18:42:18 Packaged Jul 28 2023 17:02:56 UTC
C version "Apple LLVM 15.0.0 (clang-1500.0.40.1)"
loading standard configuration file 'default.conf'
cobc: error: no input files
cobc -x -o hello_world hello_world.cbl
./hello_world