Hi, I have to create a target file with fixed width column, but each column has to be seperated by a comma(target system requirement).
If I check the 'Fixed-width column' box on the inputs/format tab, the delimiter and the quote character will disabled.
Can you suggest on how to get thru this .
Using the target file type as .csv will solve this?
Fixed width columns on the target file.
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 560
- Joined: Wed Jul 13, 2005 5:36 am
- Location: Ohio
-
- Charter Member
- Posts: 560
- Joined: Wed Jul 13, 2005 5:36 am
- Location: Ohio
Fixed width file and a delimitted file are two different formats. A fixed width cannot be delimitted and a delimitted cannot be fixed width. If you want the length of the columns from then source to be preserved and have a delimiter then do as Rohit suggested, but dont call it fixed width.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Define additional, intermediate Char(1) columns and set the value of each to ",". Generate imaginative names (like Filler1, Filler2, or Comma1, Comma2 and so on) for these columns.
In the Sequential File stage that writes the file, specify fixed-width format. Use the Display field in the Columns grid to specify the width of each column in the file.
In the Sequential File stage that writes the file, specify fixed-width format. Use the Display field in the Columns grid to specify the width of each column in the file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.