Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error code -180

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
gomu_mm

New User


Joined: 05 Dec 2006
Posts: 19
Location: Chennai

PostPosted: Fri May 01, 2009 1:26 am    Post subject: Error code -180
Reply with quote

Hi,

I have a field in a table as DATE, and I'm trying to insert previous day's date to that field through COBOL program. I'm using the field as

DATE(CURRENT DATE - 1 DAYS)

this is working when I try to insert through SPUFI but the same does not work when tried thru program. It gives -180 abend.

Please help.

Thanks,
Gomathi.
Back to top
View user's profile Send private message

a027412

New User


Joined: 05 Jul 2007
Posts: 40
Location: Minneapolis, MN

PostPosted: Fri May 01, 2009 2:23 am    Post subject:
Reply with quote

Try using CURRENT_DATE instead of CURRENT DATE
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 01, 2009 2:31 am    Post subject:
Reply with quote

Hi,

-180 says that the DATE TIME OR TIMESTAMP value is invalid. Please show us the "actual" COBOL code you use. Please don't post the "screen shot" of code instead use BBcode.
Back to top
View user's profile Send private message
gomu_mm

New User


Joined: 05 Dec 2006
Posts: 19
Location: Chennai

PostPosted: Fri May 15, 2009 1:18 pm    Post subject:
Reply with quote

Hi,

Thanks for your replies.
Its resolved now.


Thanks,
Gomathi.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 15, 2009 2:43 pm    Post subject: Reply to: Error code -180
Reply with quote

Thanks for the follow up... icon_smile.gif

Plesae share your solution, that might help others later.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us