Hi DS Gurus,
I am reading a tab delimited file using a sequential file stage. When I view the file every character has a space between them.
When I view the file in Excel, Textpad or UNIX the file looks good.
For example:
Sample source file looks like below
OrderReadyForPickup_EN_QA Bounced
But when I read in sequential file stage it is showing as below. I also loaded the file into a DataStage Dataset and even in the Dataset it is showing as below:
O r d e r R e a d y F o r P i c k u p _ E N _ Q A B o u n c e d
The below are the settings I used in sequential file stage:
Final Delimiter = End
Delimiter = tab
Quote= none
I tried with all type of delimiters and null field value but could not read correctly. I even tried with DOS format but still no luck
Can you please provide your guidance on this issue ?
Thanks,
Aditya K
Sequential file: spaces between two characters in all fields
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 104
- Joined: Thu Jul 12, 2007 11:32 pm
- Location: Canada
Sequential file: spaces between two characters in all fields
Last edited by adityavarma on Fri Feb 05, 2016 4:48 pm, edited 5 times in total.
Thanks
Aditya Kutcharlapati
Aditya Kutcharlapati
You see them that way where exactly? If it is having an issue reading / parsing the file it can show you the 'raw' data and it does that with spaces between everything inside curly braces like so:
{O r d e r R e a d y F o r P i c k u p _ E N _ Q A B o u n c e d}
Is that what you are seeing?
{O r d e r R e a d y F o r P i c k u p _ E N _ Q A B o u n c e d}
Is that what you are seeing?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 104
- Joined: Thu Jul 12, 2007 11:32 pm
- Location: Canada
-
- Premium Member
- Posts: 104
- Joined: Thu Jul 12, 2007 11:32 pm
- Location: Canada
Hi Craig,
It is showing when i read the data in sequential file and Dataset view data.
Now I have loaded the file into another sequential file, when i view the file in UNIX it is showing correctly which is good.
but my other issue is with the transformation, when i do substring to 10 characters
it is loading as below and remaining characters are been stripped off
O r d e r
Original: OrderReadyForPickup
Expected: OrderReady
It is showing when i read the data in sequential file and Dataset view data.
Now I have loaded the file into another sequential file, when i view the file in UNIX it is showing correctly which is good.
but my other issue is with the transformation, when i do substring to 10 characters
it is loading as below and remaining characters are been stripped off
O r d e r
Original: OrderReadyForPickup
Expected: OrderReady
Thanks
Aditya Kutcharlapati
Aditya Kutcharlapati
-
- Premium Member
- Posts: 104
- Joined: Thu Jul 12, 2007 11:32 pm
- Location: Canada