Hi Hugh,
If you fancy learning a few of the slightly more unusual functions that Cobol has, you could use the DATE-OF-INTEGER and INTEGER-OF-DATE functions to achieve this. Let's suppose that you want to know the last date of the last day in February next year. You could:
a)Set a field with the value 01-03-2003
b)Use the INTEGER-OF-DATE function to give you a number, and then subtract 1 from that number.
c)Use the DATE-OF-INTEGER function to get you back the last day in February.
OK, I'll admit that this is a little on the esoteric side, but it will work, and will give you an insight into some of the less used features in Cobol.
Marc