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

ADDMONS function


IBM Mainframe Forums -> SYNCSORT
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2019
Location: USA

PostPosted: Sat Nov 09, 2019 8:25 pm
Reply with quote

Right now I don’t have access to the system, but I suppose that maybe
20190228 + 1year = 20200229 ?

Try this, please...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 09, 2019 8:38 pm
Reply with quote

Quote:
20190228 + 1year = 20200229 ?


NOPE ...

20200228 is a valid date, no reason to adjust anything

but on the other side

20200229 + 12 months ==> 20210228
as You already pointed out icon_smile.gif

time to lock the topic ...
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Sat Nov 09, 2019 8:49 pm
Reply with quote

sergeyken wrote:
Rohit Umarjikar wrote:
Your are free to try and convince yourself and create your own manual and discard what Syncsort has to say about their products.

I have carefully re-read the manual. There is nothing about adding extra day after adding any months. Only short months are truncated to the last day of that month!!!

Again: try to apply common sense.

They mentioned about Leap year handled in these functions and you keep adding exceptions to that and calling it as Common Sense, Good Luck with that Common Sense..
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2019
Location: USA

PostPosted: Sat Nov 09, 2019 10:11 pm
Reply with quote

Rohit Umarjikar wrote:
sergeyken wrote:
Rohit Umarjikar wrote:
Your are free to try and convince yourself and create your own manual and discard what Syncsort has to say about their products.

I have carefully re-read the manual. There is nothing about adding extra day after adding any months. Only short months are truncated to the last day of that month!!!

Again: try to apply common sense.

They mentioned about Leap year handled in these functions and you keep adding exceptions to that and calling it as Common Sense, Good Luck with that Common Sense..

Please, read the manual carefully.
Good luck to you as well.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2019
Location: USA

PostPosted: Sun Nov 10, 2019 5:19 am
Reply with quote

BTW, according to both the utility manual, and common sense:
20190228 + 1month = 20190328, but not 20190331
20200228 + 1month = 20200328
20200229 + 1month = 20200329
20200430 + 1month = 20200530, but not 20200531
Etc. etc. etc.

It’s all absolutely clear, and logical.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top