If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Need SQL4020N Resolution for IBM DB2 UDB Version 9.1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-10, 11:35
srikanth_reddy srikanth_reddy is offline
Registered User
 
Join Date: Apr 2010
Posts: 1
Need SQL4020N Resolution for IBM DB2 UDB Version 9.1

Dear All,

Currently we are using DB2 UDB Version 9.1. We are trying to compile a embedded SQL C++ application but db2 precompiler ( prep ) throws this error "48 SQL4020N The 'long' host variable "*" is not valid. Use 'sqlint32' instead" so we overcame this error by passing 'LONGERROR NO' to db2 prep option.

On program execution the result from a database column is not retrieved correctly to a long host variable. Always long host variable value show zero. The solution of renaming long to sqlint32 datatype is not strategic since there is a huge codebase which makes this solution highly impractical.

I hereby request you please let me know if there is a resolution for this issue ( any Compiler or linker option )

Environment details:-

Solaris 5.10 64bit
IBM DB2 UDB Version 9.1

Thanks,
Sri
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On