# Flat File Schema

**URL:** <https://techcommunity.softwareag.com/t/flat-file-schema/108718>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 29, 2004, 10:22pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718 "2004-10-29T22:22:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulykonikara](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@paulykonikara](https://techcommunity.softwareag.com/u/paulykonikara)\
**Post date:** [October 29, 2004, 10:22pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/1 "2004-10-29T22:22:42Z")

</div>

Hi,

I have a flat file with a header segment say A and then sub segments B,C,D. Here is how it looks like.  
A  
B  
C  
D  
B  
C  
D  
A  
B  
C  
D  
B  
C  
D

How should I create a FF schema for this type of data.

Thanks,  
Pauly

---

<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:** [October 29, 2004, 10:41pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/2 "2004-10-29T22:41:51Z")

</div>

Pauly,

Its all depends on the flatfile how it is passing.  
Anyways create Schema RecordDefinition A (unlimited)and under this create another child RecordDefinition B (A/B)(keep this unlimited) under this create RecordDefinition (B/C)and under this same hierrachy create RecordDefinition D (B/C/D)…

And later Test with a sample,it should work.

HTH,  
RMG.

---

<div class="post-metadata">

**Author:** ![paulykonikara](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@paulykonikara](https://techcommunity.softwareag.com/u/paulykonikara)\
**Post date:** [October 29, 2004, 11:53pm UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/3 "2004-10-29T23:53:22Z")

</div>

RMG,

B,C and D are on same level and are under A. C is not a child of B.

Pauly

---

<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:** [October 30, 2004, 12:34am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/4 "2004-10-30T00:34:19Z")

</div>

Interesting…So did u tried definining the RecordDefnitions (A)childs B,C,D)and settting all the RecordDefinitions as (unlimited)?

HTH,  
RMG.

---

<div class="post-metadata">

**Author:** ![paulykonikara](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@paulykonikara](https://techcommunity.softwareag.com/u/paulykonikara)\
**Post date:** [October 30, 2004, 1:29am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/5 "2004-10-30T01:29:50Z")

</div>

RMG,

I could convert the data to ffValues but how will I loop through the data. Seems like I will have to write a java service.

Thanks,  
Pauly

---

<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:** [October 30, 2004, 1:52am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/6 "2004-10-30T01:52:13Z")

</div>

Pauly,

I am not sure why the loop wont work,but it is all depends on your target side structure definition and mapping rules.

Please elaborate us if it is possible,

HTH,  
RMG.

---

<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:** [October 30, 2004, 2:46am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/7 "2004-10-30T02:46:53Z")

</div>

Paul, you don’t require a java service to loop thru this.  
You need to tell it that A repeats unlimited and that will create it as a recordList.

---

<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:** [October 30, 2004, 3:07am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/8 "2004-10-30T03:07:33Z")

</div>

Pauly,

I believe at this point you have set ‘A’ RecordDefinition to(unlimited)in the FFSchema,then ffValues output as a recordList and ultimately loop thru work fine,i have mentioned this in the above posts hope you have noticed it…

HTH,  
RMG.

---

<div class="post-metadata">

**Author:** ![paulykonikara](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@paulykonikara](https://techcommunity.softwareag.com/u/paulykonikara)\
**Post date:** [November 3, 2004, 5:06am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/9 "2004-11-03T05:06:30Z")

</div>

Thanks RMG and Chris. I have created schema like

A (unlimited)  
B (unlimited)

And I get C and D under B.

Regards,  
Pauly

---

<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:** [November 3, 2004, 7:30am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/10 "2004-11-03T07:30:35Z")

</div>

your welcome,Glad to know that.

---

<div class="post-metadata">

**Author:** ![vchekka.6415](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@vchekka.6415](https://techcommunity.softwareag.com/u/vchekka.6415)\
**Post date:** [February 26, 2005, 3:47am UTC](https://techcommunity.softwareag.com/t/flat-file-schema/108718/11 "2005-02-26T03:47:08Z")

</div>

hai,  
Iam getting this error,while run the sefparse service in developer.It is occuring while input variable envelope process is set to true in this service.This error is  
“com.wm.ff.parse.SEFFormatException: [FFP.0000.0027] Unable to parse Transaction set 210: [FFP.0013.0008] Configuration error: [FFP.0013.0007] Missing sef file `packages/WmEDI/config/ICS4X12.sef` for stanard `X12`”  
with regards,  
venkat

---

<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/flat-file-schema/108718/12 "2021-04-02T15:05:20Z")

</div>

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


