Format Delimiter ascii 168 (¿)
Moderators: chulett, rschirm, roy
DataStage has no problem using a delimiter such as ASCII 168.
From your example it isn't clear what your actual source file format is like. Does the source file have a delimiter of char(168) between the columns or a delimiter of char(191) or a mix of both?
You can be certain of what DataStage "sees" as the delimiter character if you declared your input file as having just one column and outputting the values for
From your example it isn't clear what your actual source file format is like. Does the source file have a delimiter of char(168) between the columns or a delimiter of char(191) or a mix of both?
You can be certain of what DataStage "sees" as the delimiter character if you declared your input file as having just one column and outputting the values for
Code: Select all
SEQ(In.Column[11,1] )
I don't know where that character is coming from. Use the same debugging method as listed earlier, just output to a temporary sequential file the result of to see what the ASCII value of the first character in the string is.
Code: Select all
SEQ(In.ColumnA[1,1])
The Fixed Columns option is unchecked.
But if I also uncheck the option Suppress row truncation warnings I am getting the error :
nls_read_delimited() - row 1, too many columns in record
Otherwise, I was just looking for a delimiter character valid on the Host (udb), on Unix and Windows.
I am slowly thinking about using the comma...
But if I also uncheck the option Suppress row truncation warnings I am getting the error :
nls_read_delimited() - row 1, too many columns in record
Otherwise, I was just looking for a delimiter character valid on the Host (udb), on Unix and Windows.
I am slowly thinking about using the comma...
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You need to specify the correct number of delimited columns on the Columns grid. You can, indeed, specify more than exist in the record, and use the Missing Columns property to handle those situations.
What happens when you try to import the table definition from that sequential file and specify 168 as the delimiter? Does that work OK?
What happens when you try to import the table definition from that sequential file and specify 168 as the delimiter? Does that work OK?
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.
Hi thanks Ray !
Part of my problem is solved.
I have specified the correct number of delimited columns on the Columns grid.
I have imported the table definition and specified 168 as the delimiter, this is also working fine.
But I still have the "?" in the beginning of each outputted field.
It's like DS understand the delimiter, as he can correctly read data, but the delimiter is also included in the output data ??
Part of my problem is solved.
I have specified the correct number of delimited columns on the Columns grid.
I have imported the table definition and specified 168 as the delimiter, this is also working fine.
But I still have the "?" in the beginning of each outputted field.
It's like DS understand the delimiter, as he can correctly read data, but the delimiter is also included in the output data ??
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Caltog, per my previous post - can you see if this is reproduceable with a job that has just your read and a write stage?
I just wrote a test job going back and forth using 168 and normal commas as separators and cannot reproduce the problem you are having.
Have you checked to make sure you are using the same character set in all your input and output files?
I just wrote a test job going back and forth using 168 and normal commas as separators and cannot reproduce the problem you are having.
Have you checked to make sure you are using the same character set in all your input and output files?