# Sample pub.flatFile:FormatService

**URL:** <https://techcommunity.softwareag.com/t/sample-pub-flatfile-formatservice/109856>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [April 14, 2009, 11:41pm UTC](https://techcommunity.softwareag.com/t/sample-pub-flatfile-formatservice/109856 "2009-04-14T23:41:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![njohnston.20874](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@njohnston.20874](https://techcommunity.softwareag.com/u/njohnston.20874)\
**Post date:** [April 14, 2009, 11:41pm UTC](https://techcommunity.softwareag.com/t/sample-pub-flatfile-formatservice/109856/1 "2009-04-14T23:41:21Z")

</div>

Has anyone created a service that utilizes pub.flatFile:FormatService? Can you please provide some sample service?

I’m trying to create one that I can use for my schema/dictionary. I’m just not sure if I’m doing it right. webMethods documents does not really provide an example of the implementation unless you can point me to one.

Thanks for any suggestions.

---

<div class="post-metadata">

**Author:** ![anil\_kumar4](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@anil\_kumar4](https://techcommunity.softwareag.com/u/anil_kumar4)\
**Post date:** [May 1, 2009, 10:51pm UTC](https://techcommunity.softwareag.com/t/sample-pub-flatfile-formatservice/109856/2 "2009-05-01T22:51:12Z")

</div>

Hi

i wrote a format service to append quotes to a string(flatfile field) ex : “hello”

for this

-created a new service.  
-In the new service you need to import the signature parameters of  
pub.flatFile:FormatService service .For this open the new service and in  
input/output tab click browse and select pub.flatFile:FormatService.

- Now in the new service use the value parameter to build your logic i.e  
concat quotes etc  
-Next in the ff schema click on the variable for which you want to use the format service .And in the properties–\>format service select the new format service you created

thanks  
Anil

---

<div class="post-metadata">

**Author:** ![njohnston.20874](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@njohnston.20874](https://techcommunity.softwareag.com/u/njohnston.20874)\
**Post date:** [May 1, 2009, 11:00pm UTC](https://techcommunity.softwareag.com/t/sample-pub-flatfile-formatservice/109856/3 "2009-05-01T23:00:46Z")

</div>

Thanks Anil.

I thought that’s how it is implemented. I just wanted to verify.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/sample-pub-flatfile-formatservice/109856/4 "2021-04-02T15:05:54Z")

</div>


