Answered Questions

  • Exec sql and End exec

    why do we declare include in between exec sql and end exec and why cant we declare copybook in place of include. Is their any reason why we declare include only

    ABSS1981

    • Sep 18th, 2009

    In addition to the answers posted one of the additional things to have an INCLUDE between EXEC SQL and END-EXEC is that:You INCLUDE most likely will be a DCLGEN and it is going to have non COBOL langu...

    memays

    • Apr 30th, 2009

    It all has to do with the sequence of compiling a program with imbedded SQL.   It is important to understand that a COBOL program with SQL statements will actually go through 2 steps in the ...