# Flat File Schema for Fixed length file

**URL:** <https://techcommunity.softwareag.com/t/flat-file-schema-for-fixed-length-file/107236>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [September 2, 2005, 7:45pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema-for-fixed-length-file/107236 "2005-09-02T19:45:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [September 2, 2005, 7:45pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema-for-fixed-length-file/107236/1 "2005-09-02T19:45:52Z")

</div>

Hi, I am trying to process a Fixed length flat file using schema. I have build the schema and it is parsing all the values correctly. But in the flat file schema editor, I do not see the “record seperator”. So the string output comes as a single string rather then carriage returned string.  
I think I can better explain it with an example.  
Say my output record length required is 10  
So my output string looks like this.  
AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDD

Where as the output that I want is  
AAAAAAAAAA  
BBBBBBBBBB  
CCCCCCCCCC  
DDDDDDDDDD

I know this can be done by a simple string operation as well. But is there a way to define this in schema and directly get the output string as required.

I have defined the record length in my schema as 10.

Thanks for your help.  
Akshay

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [September 2, 2005, 8:58pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema-for-fixed-length-file/107236/2 "2005-09-02T20:58:01Z")

</div>

In the FlatFileSchema editor if you select Delimiter option(this works for parsing fixedlength file too) then select record parser to Newline or Carriagereturn (per each record).So when you set the FieldDefinitions select FixedPosition option in the properties…

This way you can manage fixedlength flatfiles with required delimiters.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [September 2, 2005, 10:08pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema-for-fixed-length-file/107236/3 "2005-09-02T22:08:33Z")

</div>

Thanks RMG. This did worked. This is really tricky…- ![](http://www.wmusers.com/wmusers/clipart/happy.gif))

Thanks again.  
Akshay

---

<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:04pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema-for-fixed-length-file/107236/4 "2021-04-02T15:04:44Z")

</div>

Closed on April 2, 2021, 3:04pm UTC


