Posted: Mon Dec 31, 2007 3:53 pm Post subject: Sort after comparision and manipulation with current year
Hi,
I have a fixed block input file which is of length 117 and on position 54, there is a year field. This field can have the current year, or current year+1 , or current year+2.
I have a requirement to split the input file in a single step to 3 different files based on the value of the year field on position 54.
I have gone through the other related posts which explains DATE1 and DATE3 parameters, but could not figure out how to compare the field with only the year-part and do the manipulation. Also, if I do with SYMNAMES, then I need to change it every year. So, I am trying to avoid any manual inntervention every year.
Can you please help me achieving this requirement,
Thanks,
Pranabesh
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Dec 31, 2007 7:07 pm Post subject:
Here's a DFSORT job that will do what you asked for. It will create the correct Symbols for the three years automatically based on the current year (e.g. 2007 today, 2008 tomorrow).
_________________ 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