IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between -180 and -181 with example


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepak_shrivastava

New User


Joined: 05 Jan 2016
Posts: 8
Location: India

PostPosted: Wed Jan 06, 2016 10:00 am
Reply with quote

Hi, Can any one please tell the exact difference between DB2 SQL Error code -180 and -181 with example ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 06, 2016 10:47 am
Reply with quote

moved to the appropriate section

the IBM manual has a very clear and detailed explanation of the two error codes.

www-01.ibm.com/support/knowledgecenter/#!/SSEPEK_10.0.0/com.ibm.db2z10.doc.codes/src/tpc/n180.html

www-01.ibm.com/support/knowledgecenter/#!/SSEPEK_10.0.0/com.ibm.db2z10.doc.codes/src/tpc/n181.html
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 446
Location: USA

PostPosted: Wed Jan 06, 2016 9:21 pm
Reply with quote

Read the links and try to run below mentioned queries:

SQLCODE -180:
Code:
   SELECT TIMESTAMP('XYZ') AS TS
     FROM SYSIBM.SYSDUMMY1
    WITH UR;

SQLCODE -181:
Code:
   SELECT TIMESTAMP('2015-99-24-00.00.00.000000') AS TS
     FROM SYSIBM.SYSDUMMY1
    WITH UR;


.
Back to top
View user's profile Send private message
deepak_shrivastava

New User


Joined: 05 Jan 2016
Posts: 8
Location: India

PostPosted: Wed Jan 06, 2016 10:20 pm
Reply with quote

RahulG31 wrote:
Read the links and try to run below mentioned queries:

SQLCODE -180:
Code:
   SELECT TIMESTAMP('XYZ') AS TS
     FROM SYSIBM.SYSDUMMY1
    WITH UR;

SQLCODE -181:
Code:
   SELECT TIMESTAMP('2015-99-24-00.00.00.000000') AS TS
     FROM SYSIBM.SYSDUMMY1
    WITH UR;


.


Thank You !!
Back to top
View user's profile Send private message
deepak_shrivastava

New User


Joined: 05 Jan 2016
Posts: 8
Location: India

PostPosted: Wed Jan 06, 2016 10:21 pm
Reply with quote

enrico-sorichetti wrote:
moved to the appropriate section

the IBM manual has a very clear and detailed explanation of the two error codes.

www-01.ibm.com/support/knowledgecenter/#!/SSEPEK_10.0.0/com.ibm.db2z10.doc.codes/src/tpc/n180.html

www-01.ibm.com/support/knowledgecenter/#!/SSEPEK_10.0.0/com.ibm.db2z10.doc.codes/src/tpc/n181.html


Thank You Very much !!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
Search our Forums:

Back to Top