Hello,
I am trying to get the last day of the month based on the year and month value taking leap year into consideration .
Input : 201702
output should be : 2017-02-28
input : 201602
output should be : 2016-02-29
Any help would be appreciated as I am new to syncsort ... Wondering LASTDAYM would work ?
Thanks
How to get the last day based on year and month
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: How to get the last day based on year and month
Wondering LASTDAYM would work
Why wonder? Why not try?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
-
How to obtain only current YEAR and subtract years from it?
by prisgs » Thu Nov 17, 2022 7:13 pm » in JCL - 3
- 2424
-
by sergeyken
View the latest post
Thu Nov 17, 2022 11:24 pm
-
-
-
How to obtain only current YEAR and subtract years from it?
by prisgs » Thu Nov 17, 2022 11:27 pm » in DFSORT/ICETOOL/ICEGENER - 3
- 1974
-
by prisgs
View the latest post
Fri Nov 18, 2022 6:27 pm
-
-
- 1
- 6552
-
by prino
View the latest post
Mon Mar 21, 2022 8:18 pm
-
- 7
- 11492
-
by AusZosGuy
View the latest post
Fri Sep 10, 2021 6:40 pm
-
- 3
- 1790
-
by Blackthorn
View the latest post
Fri Mar 05, 2021 9:34 pm