img

All About Mainframes

Let's mainframe! What is DCLGEN in DB2? DCLGEN (Declarations generator) are used in the COBOL-DB2 programs that we write. The program should declare the tables and views that it accesses. DCLGEN produces these DECLARE statements so that we do not need to code these statements manually. It also generates corresponding host variable structures. When DCLGEN is used to generate a table declaration, the DB2 uses the DB2 catalog to get the relevant information from it. DCLGEN, then uses this information to create an SQL DECLARE TABLE statement for the table/view. DCLGEN has SQL DECLARE TABLE statement, the Cobol equivalent variables for columns and NULL indicators too.

img

Aaron Olive

Cybage

a month ago

Sign in to a Grapevine account for the full experience.

Discover More

Curated from across

  • Home
  • All About Mainframes