Page 1 of 1

Is it mandatory to use DCLGEN?

Posted: Sun Nov 24, 2013 1:52 pm
by NotAUser
Hi,

In an interview I was asked - is it mandatory to use DCLGEN? If not, why would you use it at all?

Re: Is it mandatory to use DCLGEN?

Posted: Sun Nov 24, 2013 2:25 pm
by Anuj Dhawan
No, it's not mandatory.

On the other hand, we don't encourage such discussions in the Guest Area - suggest you join us and then post the question in the appropriate part of the Forum.

Re: Is it mandatory to use DCLGEN?

Posted: Mon Nov 25, 2013 2:03 pm
by Anjali Chopra
As Anuj said, it's not a mandate imposed by the system. They are used for easy understanding of the code.

Re: Is it mandatory to use DCLGEN?

Posted: Wed Jan 01, 2014 7:52 pm
by DB2 Guy
DCLGEN, in a very basic sense, is just a (COBOL) copybook equivalent of a table structure. You can even write COPY some-dclgen and that will work. But as DCLGEN is generated using DB2 it is usually included using INCLUDE DCLGEN-name, just to "show" that this piece of information belong to DB2, though that's' not mandatory as has been said.