I have the below file and am trying to meet the below requirement
Input file:
(YEAR(CENTRAL_PROC_DATE)=2004 and MONTH(CENTRAL_PROC_DATE)=04 )
(YEAR(AUTH_DATE)=2004 and MONTH(AUTH_DATE)=12)
Requirement:
For MONTH's 01-11:
Increment MONTH by 1
For MONTH 12
Increment YEAR by 1 and change MONTH to 01
Desired output:
(YEAR(CENTRAL_PROC_DATE)=2004 and MONTH(CENTRAL_PROC_DATE)=05 )
(YEAR(AUTH_DATE)=2005 and MONTH(AUTH_DATE)=01)
Any ideas please?
Input file:
(YEAR(CENTRAL_PROC_DATE)=2004 and MONTH(CENTRAL_PROC_DATE)=04 )
(YEAR(AUTH_DATE)=2004 and MONTH(AUTH_DATE)=12)
Requirement:
For MONTH's 01-11:
Increment MONTH by 1
For MONTH 12
Increment YEAR by 1 and change MONTH to 01
Desired output:
(YEAR(CENTRAL_PROC_DATE)=2004 and MONTH(CENTRAL_PROC_DATE)=05 )
(YEAR(AUTH_DATE)=2005 and MONTH(AUTH_DATE)=01)
Any ideas please?