Export to delimited file - text qualifiers only on text.

More
10 years 3 weeks ago - 10 years 2 weeks ago #7994 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|
Last edit: 10 years 2 weeks ago by mdspeirs. Reason: rules

Please Log in or Create an account to join the conversation.

More
10 years 3 weeks ago #7995 by admin
Read the rules
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.

More
10 years 3 weeks ago #7996 by mdspeirs
Version 5.7.2.10
Source .xls file
using a transformation

thx

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #7999 by admin
You can just remove quote fro writer and use if null + ensure prefix/suffix functions to enclose values when necessary

see pictures attaches

Peter

Mike
ETL Architect
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #8000 by mdspeirs
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.

More
10 years 2 weeks ago #8001 by admin
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

Mike
ETL Architect

Please Log in or Create an account to join the conversation.