Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Dec 04, 2006 6:19 pm Post subject:
Here's a DFSORT job that will do what you asked for. SORTIN for S1 can have 2008 Scale Hold or 2007 Scale Change starting in position 3 (if they don't start in position 3, change the job appropriately).
_________________ 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
I have misstated my requirement and I apologize for that. The second file values are variables they are not always constant, except strings " scale hold" and "scale change". Here is the sample 2nd file structure
year1 scale hold
year2 scale change rate1
If it is Scale Hold,
The following logic to be applied in 2nd file
Replace field at postion 20 in 2nd file with the new value year1
If it is Scale Change
The following logic to be applied in 2nd file
Replace field at postion 20 in 2nd file with year2 and fields at 30 & 40 with new value .rate1.
From your solution, I think I need to make modifications to the flag record in the first step, to include the rate information and year information, which I should use in the second step. Please let me know if that works
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Dec 05, 2006 12:47 pm Post subject:
Well, that does make a difference. Your posts are very confusing with respect to what positions the relevant fields are in and whether the values are lowercase or initial cap, but this revised DFSORT job should give you the idea. In this case, we create and use three symbols, Flag, Year and Rate. (Rate will be blank and unused in the hold case.)
_________________ 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
Thank you Kolusu, You are right I am using syncsort. Is there any way I can use the same logic and use the appropriate keywords in syncsort to achieve the desired results
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Dec 05, 2006 1:51 pm Post subject:
Quote:
While I am trying to execute, I am getting the following error in first step i.e flag creation step S1.
WER268A OUTFIL STATEMENT : SYNTAX ERROR
As Kolusu pointed out, the WER messages indicate you're using Syncsort, not DFSORT. Note that my job works fine with DFSORT. I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort. _________________ 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
I have also another requirement to drop some records from a file using another control file, where it will have all the records that needs to be dropped. I searched through form with word 'drop' and could not find desired results.
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