on 07-30-2007 8:56 AM
Hi All,
I am doing the scenarios like File name at the recevier end would be dynamic for that i take an extra field NAME mapped with UDF which return the file name dynamically. It is working fine and doing good. But the problem here is , this field is the first field in my target structure so i am getting an empty line in the target file.
So My structure as follows:
<b>MT_BNK01 1..1
NAME 1..1
RECORD 0..Unbound
--Record_data 0..Unbound</b>
So in the recever side i written as follows
Recordset Structure:: RECORD
<b>RECORD.fieldSeparator = 'nl'
RECORD.endSeparator = 'nl'</b>
But according to this weblog i can suppress the empty line but it is not working
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
means, NAME is also in the same level of RECORD in the Structure. So How can i pass the structure as ??
I tried to pass the RecordSet Structure: NAME,RECORD
and following parameters, it is not working
<b>NAME.fieldFixedLength =0
NAME.fieldLengthTooShortHandling = Cut</b>
Can you please suggest me what could be the reason. Tell me what information i need to pass the RecordSet Structure and attrubute information also.
One more thing like, My sender side it is not picking the empty lines. What could be the reason. I given fieldSeparator and endSeparator as 'nl'. So to catch the empty line what i need to do???
Thanks in Advance,
Best Regards,
Vijay
Hi,
Change your target data type slightly.
MT_BNK01 1..1
<b>FILNAME 1..1</b>
...NAME 1..1
RECORD 0..Unbound
--Record_data 0..Unbound
Record set Structure : FILENAME,RECORD
FCC parameters
FILENAME.fieldFixedLength =0
FILENAME.fieldLengthTooShortHandling = Cut
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya,
This can be solved. Actually i had the same scenario where i was getting blank line for the header. Suppose Header was carrying the file name after i cut the value i would get a blank line in file.
So i added in content conversion parameter the following line
Header.endSeparator - '0'
then the first line was not blank.
Try this, i think your issue will be solved
Regards,
Ramesh P
Message was edited by:
Ramesh Parashivamurthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
have a look
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i --> Dynamic File Name using XI 3.0 SP12 Part I
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii --> Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.