Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    1

    Question Unanswered: Precompiler option to avoid 'BEGIN DECLARE SECTION'

    hI,
    I am working with DB2 v8 in an AIX operative system trying to compile COBOL programs.
    I would like to avoid de DB2 sentence 'BEGIN DECLARE SECTION' to define 'variables host' in the working storage section of the cobol program, but I can't find wich is the precompiler directive to do it.

    In know than in DB2 v7 in operative system z/OS (In a Mainframe) the precompiler directive is STDSQL(NO) but I can't find the equivalent in AIX.

    Regards.

  2. #2
    Join Date
    Nov 2003
    Location
    Netherlands
    Posts
    96
    Search the COBOL compiler docs, which compiler are you compiling with?

  3. #3
    Join Date
    Jan 2005
    Posts
    191
    DB2 for MVS (from which DB2 for zOS is a direct decendant) was written before there was an SQL Standard. Consequently it has options for ignoring the standard that DB2 for LUW doesn't have - otherwise working code would break.

    There's nothing to stop you adding the DECLARE SECTION statements.

    James Campbell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •