Posted: Mon Jan 04, 2010 10:48 pm Post subject: pick only previous, current, future-1 and future-2 dates.
Hi,
Our customer sends us a file with data to be processed. It contains CCYY in the first four bytes. Our program handles only the current, previous, future-1 and future-2 dates only.
So, the output file should contain Previous (2009), Current (2010), Future-1 (2011), and Future-2 (2012) for this year. For next year it should be Previous (2010), Current (2011), Future-1 (2012), and Future-2 (2013) and so on..........
How to get it using SORT?
TIA.
Regards. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Posted: Wed Jan 06, 2010 10:23 am Post subject: Thx
Hi,
Thank you very much for the solution. It is working for me. I have got one doubt. Why it had to create symbols with a '+' in front of year part? What happens if just STARTYEAR,2009 was created?
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Jan 06, 2010 12:07 pm Post subject:
The '+' isn't needed in this case. I tend to use it because it is needed for decimal constants in the BUILD operand, and it doesn't hurt to have the '+'. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum