Problem:
Which compiler flag should I use in order to have the objects to be created in a directory other than the current one?
Resolution:
Use the -Ngnt flag then specify the file location for the output file.
cob -u -Ngnt="/tmp/testxx/tictac.gnt" tictac.cbl
This example causes tictac.gnt file to be written to the /tmp/testxx directory.
Old KB# 4522



