It is very likely that the Programmer's Guide has it...
For a list of the system routines available with GnuCOBOL have a look at the manual (shipped PDF and info page) or at cobc --list-system.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my code I’m doing the following to identify is a file exists (on a Mac)
Then I read the bot.check file to determine if the file chromedriver was found.
This works fine.
But when I exit the program (back to the OS) I see the error message resulting from the ls command when the file was not found:
ls: /usr/local/bin/chromedriver: No such file or directory
Anyway I can prevent that? It’s not a major issue but I’d prefer to return to an error message free screen when existing the program.
Add
2>/dev/null
to your command forCALL 'SYSTEM'
- and even better :useCALL 'CBL_CHECK_FILE_EXIST'
in the first place.the what now? I didn't know about CBL_CHECK_FILE_EXIST. Thank you!
It is very likely that the Programmer's Guide has it...
For a list of the system routines available with GnuCOBOL have a look at the manual (shipped PDF and info page) or at
cobc --list-system
.