by Robert Sample » Thu Jul 14, 2016 4:59 pm
Talk to your site support group and get their help. There are so many ways to compile a COBOL program -- through a batch job stream or through a TSO command or through a Unix command or through an ISPF option and the source can come from a PDS, through CA-LIBRARIAN, through Endevor, through Panvalet, etc -- that every site has their own way to compile programs. You need to find out -- from co-workers, your team leader, your manager, or your site support group -- how to compile a COBOL program with SQL statements. Since this is site-specific, there's not really anything anyone on this - or any other - forum can do to help you since we don't work at your site and have no idea how things are set up there. But there is a way at your site to specify options to the COBOL compiler, and you need to find that way and use it to add SQL to the options for your compile.