Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Error-Getting year out of timestamp

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

Senior Member


Joined: 21 Sep 2010
Posts: 2038
Location: NY,USA

PostPosted: Fri Mar 22, 2013 1:16 am    Post subject: Error-Getting year out of timestamp
Reply with quote

Code:
EXEC  SQL                       
  SELECT YEAR(CURRENT TIMESTAMP)
       INTO :WS-TIMESTAMP-YEAR 
  FROM SYSIBM.SYSDUMMY1         
END-EXEC                               


WS-TIMESTAMP-YEAR is definied as x(4).

Is it valid to use it in the application programming?

This works fine with SPUFI and other tools.

but in the application programming I am getting below error,

Code:
====== NEW PAGE ========                                                       
 ERROR ON SETTING TIMESTAMP                                                     
 IGZ0020S A logic error occurred.  Neither FILE STATUS nor a declarative was spe
          AAABD002 at relative location X'8DEA'.  The status code was 42.       
 CEE3250C The system or user abend U1020 R=00000000 was issued.                 
          From compile unit CEEWUCHA at entry point CEEWUCHA at compile unit off
           at address 209779F4.     


Resolution:

Code:
Programmer Response:  Check operation request for the file.   
                                                               
System Action:  The application was terminated.               


Can anyone please suggest.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Mar 22, 2013 1:29 am    Post subject:
Reply with quote

The value returned for the YEAR function is a large integer!
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2038
Location: NY,USA

PostPosted: Fri Mar 22, 2013 2:04 am    Post subject:
Reply with quote

Thanks Craq.
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 Vision plus req. In Pune 5 to 10 year capricorn Mainframe Jobs 0 Wed Oct 24, 2018 5:26 pm
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm
No new posts Error in IEBGENER supriyo kumar JCL & VSAM 1 Thu Sep 27, 2018 10:22 pm
No new posts Error while trying to open an AIX in ... amitc23 CICS 4 Tue Sep 04, 2018 12:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us