Page 1 of 1

OCCURS clause in DCLGEN ???

Posted: Tue Sep 22, 2009 10:15 am
by biswaranjan

I have never seen OCCURS clause in DCLGEN in DB2?

But is it possible that DCLGEN in DB2 can have OCCURS clause in it?
I think it'll lead to data conflict.

Can anyone please explain more on this to me?


Posted: Tue Sep 22, 2009 12:07 pm
by Natarajan
my .2 cents on this.

DCLGEN do the field by field conversion from the table field definition
to cobol declarations. In that case DCLGEN tool does not require OCCURS clause.

One thing, you can do is, you can update the DCLGEN copybook with OCCURS clause and try.