IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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

Senior Member


Joined: 14 Mar 2007
Posts: 10695
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.

Use [URL] BBCode for Links

Use [URL] BBCode for Links
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.

Use [URL] BBCode for Links

Use [URL] BBCode for Links


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 All times are GMT + 6 Hours
Forum Index -> DB2
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
No new posts Difference between sysexec and sysproc CLIST & REXX 6
No new posts Difference between DATACLAS=MULTIVOL ... JCL & VSAM 10
No new posts Difference between CICS region bounce... CICS 3
No new posts Difference between GE and GB return c... IMS DB/DC 8

Back to Top