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 

sqlcode 180 during fetch

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


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Thu Nov 02, 2006 5:01 am    Post subject: sqlcode 180 during fetch Reply with quote

hi all,

i have a table with has two Timestamp columns. i also have a corresponding DCLGEN for the table which i'm using in my Cobol-DB2 pgm. when i run the pgm i'm getting sqlcode of 180 at the fetch statement. i knw that 180 is occured due to invalid date or time or timestamp column.
I'm using a DCLGEN created by the DBA. the corresponding host variable for the timespramp column has X(26).
also i'm not facing any problems with other tables which have timestamp columns.(i'm using DCLGEN for the other tables aslo).

plz help in figuring out what the problem is..

thanks

Mayuri
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Nov 02, 2006 7:53 am    Post subject: Reply with quote

mayuri,

Does the timestamp field contain NULLS? If so do you have a null ind check ?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mayuri
Beginner


Joined: 26 Aug 2006
Posts: 17
Topics: 4

PostPosted: Thu Nov 02, 2006 11:08 pm    Post subject: Reply with quote

hi Kolusu

The Timestamp fields are NOT NULL

Regards
Mayuri
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Nov 03, 2006 8:02 am    Post subject: Reply with quote

what is your SQL?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Nov 03, 2006 1:45 pm    Post subject: Reply with quote

actually,your declare curso sql. you receive the 180 because a host variable for date or ts is bad. you don't get 180's from db2 columns.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
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