- Posts: 122
- Thank you received: 4
Export to delimited file - text qualifiers only on text.
10 years 3 weeks ago - 10 years 2 weeks ago #7994
by mdspeirs
Export to delimited file - text qualifiers only on text. was created by mdspeirs
I'm trying out AETL-E Version 5.7.2.10
Source .xls file
using a transformation
Can't figure out how to export a | delimited file and only have " qualifiers on non null text.
right now I've got:
|""|"02/26/1964"|"2500 waterhole road"|""|"Colchester"|"1"
what I want is:
||02/26/1964|"2500 waterhole road"||"Colchester"|1|
Source .xls file
using a transformation
Can't figure out how to export a | delimited file and only have " qualifiers on non null text.
right now I've got:
|""|"02/26/1964"|"2500 waterhole road"|""|"Colchester"|"1"
what I want is:
||02/26/1964|"2500 waterhole road"||"Colchester"|1|
Last edit: 10 years 2 weeks ago by mdspeirs. Reason: rules
Please Log in or Create an account to join the conversation.
10 years 3 weeks ago #7995
by admin
Mike
ETL Architect
Replied by admin on topic Export to delimited file - text qualifiers only on text.
Read the rules
www.etl-tools.com/forum/rules
version number?
Source type?
How do you export it using package or transformation?
Mike
www.etl-tools.com/forum/rules
version number?
Source type?
How do you export it using package or transformation?
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
10 years 3 weeks ago #7996
by mdspeirs
Replied by mdspeirs on topic Export to delimited file - text qualifiers only on text.
Version 5.7.2.10
Source .xls file
using a transformation
thx
Source .xls file
using a transformation
thx
Please Log in or Create an account to join the conversation.
10 years 2 weeks ago #7999
by admin
Mike
ETL Architect
Replied by admin on topic Export to delimited file - text qualifiers only on text.
You can just remove quote fro writer and use if null + ensure prefix/suffix functions to enclose values when necessary
see pictures attaches
Peter
see pictures attaches
Peter
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
10 years 2 weeks ago #8000
by mdspeirs
Replied by mdspeirs on topic Export to delimited file - text qualifiers only on text.
can that be combined into 1 operator somehow? I have to apply it to 137 fields.
Please Log in or Create an account to join the conversation.
10 years 2 weeks ago #8001
by admin
Mike
ETL Architect
Replied by admin on topic Export to delimited file - text qualifiers only on text.
Can you try the following please
1. Make sure that the writer has only one field
2. Remove leading/closing spaces from all fields using trim function
3. Join all fields using quote and | as delimiter
4 Replace |"" with |
Let us know the outcome
Peter
1. Make sure that the writer has only one field
2. Remove leading/closing spaces from all fields using trim function
3. Join all fields using quote and | as delimiter
4 Replace |"" with |
Let us know the outcome
Peter
Mike
ETL Architect
Please Log in or Create an account to join the conversation.