# Flat File Content

**URL:** <https://techcommunity.softwareag.com/t/flat-file-content/107731>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [February 13, 2003, 3:45pm UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731 "2003-02-13T15:45:21Z")\
**Posts on this page:** 8\
**Page:** 3

<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:** [May 10, 2005, 9:20am UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/41 "2005-05-10T09:20:02Z")

</div>

Yes, RMG. U R Correct. I haven’t set the MaxRepeat as Unlimited. I have done that its fine. Thanks for your nice tips.

---

<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:** [May 10, 2005, 12:15pm UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/42 "2005-05-10T12:15:18Z")

</div>

Hi, I have a Fixed length Flat file like

SampleRec_Siva_12345

The flat file schema is :

SampleRec

- Name
- Age

And i gave the Record length as 21. And field Delimiter : \*.

but while running the ff schema i am getting like as follows

name: SampleRec  
Age : Siva

And isValid : true.

What is the problem here, is there any settings issue. Please Help me.

Thanks

---

<div class="post-metadata">

**Author:** ![Chris\_L](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Chris\_L](https://techcommunity.softwareag.com/u/Chris_L)\
**Post date:** [May 10, 2005, 6:08pm UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/43 "2005-05-10T18:08:39Z")

</div>

Looks like you are sending your record name as one of the fields.  
SampleRec_Siva_12345  
Based on your example above you have 3 fields in SampleRec, Siva and 12345. Therefore your output is correct.  
You need to add Recordname as the first field in your schema. Then ignore it in your processing.

To get the output you desire your data would have to look like this:  
Siva\*12345

Also set your field delimiter to newline and don’t make it fixed length.

---

<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:** [May 11, 2005, 10:10am UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/44 "2005-05-11T10:10:32Z")

</div>

Hi,Can any body give me a sample variable length Flat file.

I have assumed one like as below.

9test\*Siva

9- Length of the record  
test- record name  
\*- field seperator  
Siva- Field value

Is this a valid variable length flat file?

If not correct me .

Thanks

---

<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:** [May 11, 2005, 6:59pm UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/45 "2005-05-11T18:59:19Z")

</div>

Siva,

What you are trying to achieve?

Hope you understood the above postings and thoughts by me and Chris.

---

<div class="post-metadata">

**Author:** ![carl4](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@carl4](https://techcommunity.softwareag.com/u/carl4)\
**Post date:** [June 7, 2005, 6:51am UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/46 "2005-06-07T06:51:03Z")

</div>

I have a single record type based flatfile schema with no record identifier. So I have defined a dictionary and assigned the same as default record type. This works pretty well and parses the records as desired. But it gives me the results as document array of

/ffvalues/recordWithNoId.

For generalization purpose (with multi-record types) I need the docuement array in

/ffvalues/DETAILS

How do I get this? I tried the alternate name (in properties tab) stuff in vain… any clues???

Thanks in advance

---

<div class="post-metadata">

**Author:** ![bash](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bash](https://techcommunity.softwareag.com/u/bash)\
**Post date:** [August 8, 2005, 8:05pm UTC](https://techcommunity.softwareag.com/t/flat-file-content/107731/47 "2005-08-08T20:05:36Z")

</div>

After the parsing, map the contents of ffvakues/recordWithNoID to ffvalues/DETAILS using a MAP step and that should work

---

<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-content/107731/48 "2021-04-02T15:04:54Z")

</div>



[Previous page](https://techcommunity.softwareag.com/t/flat-file-content/107731.md?page=2)
