Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2002
    Posts
    456

    Unanswered: COPYBOOK and INCLUDE - OS390

    Hi, I am making a transition to mainframe land (still love AIX..lol) and these two things are throwing me off..can anybody explain what are they and their use.

    thanks in advance.

    dollar

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    INCLUDE is a way to copy working storage definitions of the SQLCA or SQLDA into the source code of a DB2 program. The record layouts for these are stored in DB2 and are inserted by the DB2 pre-compiler. All COBOL programs using DB2 should have the SQLCA included to examine DB2 return codes. The SQLDA is used for dynamic SQL in a COBOL program. You can also define your own record layouts and store them in DB2, but most people don't do that.

    User created record layouts of DB2 tables (created by DECLGEN or hand coded), other working storage records, or other reusable procedural statements, are usually stored in a COPYBOOK managed by a source code management system like PANLALET (or whatever source code management system you are using).

Posting Permissions

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