cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a special character

Former Member
0 Kudos

Hi users,

my scenario is proxy to file.how to add a special character at the end of the message in a file.The special character should not be a field separator.

ThanksIn Advance

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

concatnate special character in target structure last field in mapping level .

mappinglogic for last field------>                                                                                
Concat------->lastfield
              constant(specialcharacter)----->

Former Member
0 Kudos

Hi Rajashekar,

Thanks for your response.

In my scenario the receiver structure looks like the below format

Record

Header 1-1

Name

Rank

Marks 0-unbounded

maths

science

I have mentioned the file cc configuration details like below

RecordsetStructure:Header,Marks

Header.fieldSeparator---$

Header.endSeparator----$

Marks.fieldSeparator------,

Marks.endSeparator------%

The output file is coming like this

Swathi$First$90,80%70,78%65,67%

But i want file like this

Swathi$First$90,80%70,78%65,67%&

& is the special character which i need to display at the end of the message in a file.

Former Member
0 Kudos

Swathi,

Define one more segment in your target message type

for example:

<Trailer>

<EndSeparator> -


> Map constant "&" this element.

</Trailer>

Record
Header 1-1
Name
Rank
Marks 0-unbounded
maths
science
Trailer 1-1
EndSeparator

And in FCC modify your parameters

RecordsetStructure:Header,Marks,Trailer
Header.fieldSeparator---$
Header.endSeparator----$
Marks.fieldSeparator------,
Marks.endSeparator------%

Regards

Ramesh

Former Member
0 Kudos

Hi Ramesh,

Thanks for your response.

My scenario now working fine, but i used TRAILER.fieldFixedLenths.

with out changing the structure is there chance to achive my requirement?

Thanks

Former Member
0 Kudos

Swathi,

I personally doubt that it can be achieved without altering the structure.

Also since we are only making minor change in Target Message, it should not affect your requirement.

Regards

Ramesh

Former Member
0 Kudos

It's not affecting the target structure. sill i need to achive the requirement with out changing the target structure .

Former Member
0 Kudos

Swathi,

Withoug changing the target structure, if you want to achive probably with module development.

Just for testing (not sure whether it will work!)

If record is itself a one complex-type, can you try record.endSeparator --->&

regards

Ramesh

Former Member
0 Kudos

Hi Ramesh,

I have tried with record its not working.Its not throwing an error but the special character is not displaying at the end of the message in a file. I gave configuration details like below

RecordsetStructure: record,Header,Marks

record.feildSeparator ---

record.endSeparator---&

Header.fieldSeparator--$

Header.endSeparator--$

Marks.fieldSeparator---,

Marks.endSeparator---$

Regards

Answers (0)