MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to find the affected column,,,

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
mgjagadish
Beginner


Joined: 18 Jan 2003
Posts: 13
Topics: 7
Location: 7/2,rams Apartments,Chennai1-14

PostPosted: Sun Jan 19, 2003 8:17 am    Post subject: how to find the affected column,,, Reply with quote

Hello,
I have easytrieve program in which i use scalar functions 2 extract year and days of year of a date variable.I have defined those host vairablkes as char strings..That is Alphanumeric...when I fetch them I get a SQL CODE OF -303....

The error message gives me the option of finding from SQLDA...
How do locate the columns which have incompatible data type.
Any suggestions ...
Jagadish
_________________
JAGADISH
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sun Jan 19, 2003 8:56 am    Post subject: Reply with quote

Jagadish,

The result of the function YEAR is a large integer ie. S9(09) comp and intrepreted as
binary of 4 bytes in easytrieve.

The result of the function DAYOFYEAR is also a large integer.

so define the 2 host variables as binary and it will get rid of -303

Also check this link for DB2 UDB for OS/390 and z/OS V7 SQL Reference

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group