Referencing a variable



IBM's flagship relational database management system

Referencing a variable

Postby fornanthakumar » Thu Feb 24, 2011 1:26 pm

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...
Regards,
Nanthu.Y.
fornanthakumar
 
Posts: 69
Joined: Fri Oct 22, 2010 1:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Referencing a variable

Postby enrico-sorichetti » Thu Feb 24, 2011 2:34 pm

IIRC the db2 precompiled does not support qualified host variables
I said IIRC :D , You will have to check the manuals
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Referencing a variable

Postby GuyC » Thu Feb 24, 2011 4:47 pm

it has been a while , but I think it is :BDS-TRANS-HSTRY.TRANS-A
I can explain it to you, but i can not understand it for you.
GuyC
 
Posts: 315
Joined: Tue Aug 11, 2009 3:23 pm
Has thanked: 1 time
Been thanked: 4 times


Return to DB2

 


  • Related topics
    Replies
    Views
    Last post