Joined: 24 May 2005 Posts: 36 Topics: 20 Location: chennai
Posted: Wed Sep 20, 2006 4:47 am Post subject: Split the records and write it in multiple file
Hi,
I have a input file with 10 record. First character is number ( has 0 to 9). I want to write it into 10 file based on number. ie record with 0 should come in 1st file, 1 should come in 2nd file.....
_________________ 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
What would be the solution if i were to use code below with OUTFIL and IFTHEN routing to 10 different files or is it that we can get the solution only using ICEMAN as posted below ? Can you help me out ?
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Sep 20, 2006 3:08 pm Post subject:
OUTFIL INCLUDE routes the records to a file. OUTFIL IFTHEN only reformats records - it does not route them. You want to use INCLUDE for what you're doing, not IFTHEN. Why do you keep asking about IFTHEN when it has nothing to do with what you're trying to do?
Quote:
or is it that we can get the solution only using ICEMAN as posted below
I don't know what you mean by this.
Quote:
Can you help me out ?
Help you out with what? OUTFIL INCLUDE is the solution to what you asked for. What is it you need more help with? _________________ 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