on 03-18-2009 12:54 PM
Hi All,
my target Xml Structure is like this,
<Message Type>
<Header>
<Name>A</Name>
<EMPID>234</EMPID>
..............
..............
<Grade>B</Grade>
<\Header>
<\Message Type>
I need to write a FCC on the receiver side in such a way that,i dont want some fileds to be present in output text file( eg. Grade should not be present in output txt file). I have created this field in Target structure for some other purpose.
Can anyone please suggest me how to achieve this.
Thanks,
Hemanth.
Hemanth,
Try what barry has suggested..
else you can also use 2 graphical mappings in 1 interface mapping
1st mapping with source and entire target structure
2nd mapping with input as output of 1st mapping and target as structure without the field that you want
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I dont want some fileds to be present in output text file( eg. Grade should not be present in output txt file). I have created this field in Target structure for some other purpose.
Can you tell what is the purpose of Grade field, may be we can find some other solution. Because untill and unless you don't remove/disable unwanted fields from your target, you won't be able to get your desired result or use fieldFixedLength with value 0.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Barry,
Thanks for the response but If i am using fieldseparator in the FCC, then what to do ? because i dont know the exact size of the fields.please help me in this case.
Thanks,
Hemanth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
since you mentioned you dont want some of the fields to be part of the message, the best way is to make sure you dont map it to the target structure. Edit your data type so that those field are not part of your target or instead of editing, you can right click and disable the target fields in your mapping.
Yes. What Barry has suggest is correct. Use fieldFixedLength and give the value as 0 for those fields which you don't want in your output file.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could try using fixedwidth values and assigning 0 for the fields you do not require!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.