on 03-09-2009 12:03 AM
Hi all,
In my scenario FILE --> JDBC I have my first line in my file (CSV like) which is the title of my data. I would like to escape it in my mapping.
How can I do it ?
Thanks
Hi Joseph,
U can skip the first line by specifying the Document offset in the content conversion tab
Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi joseph,
if i understood right you just dont want to pass the title field value to the target structure... is that right(if not could you be more specific of the CSV file structure details)... if it is so then....
as this is File sender and JDBC receiver.... you don't have to map a field(comming from source) in your mapping to the target field..... then the value from source will not be passed on to the target.... this can be one solutions....
check this out,
Regards,
JP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if your requirement is not to use the values in the first element of a specific node use the following logic;
Lets say the node is A, then
A -> *INDEX* ------------
*NOT* ----- *EQUALSS* | ------------- DO what ever logic
*(Constant)* 1 ------
in the above when the index function is used and is checked with a constant 1, then the value of the first element is captured .. base what ever logic you want after that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Donot map the element to the target structure.
rgds
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joseph,
Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.
Rgds
joel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.