Hello guys! It's been a while that I am learning cobol .
Now, I need a little logic help. You see, I need to create a routine to add the values of DAYS depending on the input MONTH. I already got the idea of the Leap Year. Only the DAYS and MONTHS left.
Let's say I have a table that redefines my other variables '31283130313030313130313031' occurs 2, then the values of each number like, 31 will be added until 12 times is met.
or if there's a more efficient way to add the DAYS of the YEAR to an INPUT MONTH.
Let's say Feb 1 is equal to 32 days if it's not a leap year. Thanks!