Page 1 of 1

Referencing a variable

PostPosted: Thu Feb 24, 2011 1:26 pm
by fornanthakumar
Hi,

I have included two copy books in my program. In which both the copybooks having same variable TRANS-A and CLEARD-A..
when i am fetching data from the table, i have referenced varibales in such a way

:TRANS-A OF BDS-TRANS-HSTRY
:CLEARD-A OF BDS-ACNT-HSTRY

But i have got an error saying TRANS-A and CLEARD-A are not uniquely defined?

Is there any compiler options which will identify the keyword "OF" for referencing a variables...

Re: Referencing a variable

PostPosted: Thu Feb 24, 2011 2:34 pm
by enrico-sorichetti
IIRC the db2 precompiled does not support qualified host variables
I said IIRC :D , You will have to check the manuals

Re: Referencing a variable

PostPosted: Thu Feb 24, 2011 4:47 pm
by GuyC
it has been a while , but I think it is :BDS-TRANS-HSTRY.TRANS-A