How to process sequential file with varying record formats?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Read each line as a single VarChar column, and effect your parsing in a Transformer stage. Use stage variables to track where you're up to in each logical record.
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.
-
- Participant
- Posts: 246
- Joined: Mon Jun 30, 2008 3:22 am
- Location: New York
- Contact:
How will you, even manually differentiate the '*' in the delimiter and the data?truenorth wrote:Unfortunately, yes, the data contains *.
We have had a similar file once but we never got '*' in the data.
Maybe you can check with your source system and confirm if the delimiter can be changed to something which will not be in the data.
Arun
Makes sense, Ray. I'll go that route.ray.wurlod wrote:Read each line as a single VarChar column, and effect your parsing in a Transformer stage. Use stage variables to track where you're up to in each logical record. ...
As a matter of fact, that was exactly what I was saying. We couldn't differentiate the *s.arunkumarmm wrote:How will you, even manually differentiate the '*' in the delimiter and the datatruenorth wrote:Unfortunately, yes, the data contains *.
Great idea. I'll pursue that, too.arunkumarmm wrote:Maybe you can check with your source system and confirm if the delimiter can be changed to something which will not be in the data.
Many, many thanks, everyone. I'll keep you posted.
Todd Ramirez
Sr Consultant, Data Quality
San Antonio TX
Sr Consultant, Data Quality
San Antonio TX