I am trying to build a flat file that looks like this:
A21G 97848000000001 Willem
A21F 97848000000001 Rosiers
A21G 97848000000002 Jessica
A21F 97848000000002 Herron
A21G 97848000000003 Dave
A21F 97848000000003 Preston
Each line is a composite of three fields (Code, Employee Num, and Name) The first line is a First Name, the Second is a last name. This example has 2 employee records, 1 for Willem, 1 for Jessica and 1 for Dave. I have the following problem. I need each composite/field on its own line but I also need the records to be separate too… therefore I am having a hard time finding the correct record delimiter to use. If I use a ‘!’ and use the following sample file, it works fine.
A21G 97848000000001 Willem
A21F 97848000000001 Rosiers
!A21G 97848000000002 Jessica
A21F 97848000000002 Herron
!A21G 97848000000004 David
A21F 97848000000004 Preston
My schema has the following settings:
Record Parser: Delimiter
Record Character:!
Composite Character: newline
Subfield: <empty>
Record Identifier: starts at position 0
First Name composite extractor: field 0
Last Name composite extractor: field 1
Any help anyone could give would be GREATLY appreciated!
So to read this i created a flatfile schema
920(unlimited)
|
field defs
|
–>921(rec def)(unlimited)
|
fld defs
make sure the second record comes as a sub record (inside) of the first Record
Record Parser: Delimiter
Record character : newLine
Record Identifier: starts at position 0
Also there is a packagecalled wmEDISamples which comes along with EDI Package and has good examples. If you can go thru it,i am sure that will solve your problem
Thanks for your help-- that seemed to work out for me. I created a root record called A20G, with child records A20F… etc. So the field delimiter is newline… and it recognizes the new record when it hits A21G. We also restricted the child record (A21F) to max occurrence = ‘1’ but the root record (A21G) is max occurrence = ‘Unlimited’
Hi
I’m trying to build a flat file template (fixed) with no segment-id.
we have webM 4.0.1 with WmEdi package. The template is defined as follows…
<segment-delimiter> (from WmEdi Doc,page97)
<keyword></keyword>
<offset></offset>
<fixed>10</fixed> (file records are seperated by new line)
</segment-delimiter>
Opps, I could have done search on the keyword “recordWithNoID” before posting. I tried with edi template,flat template etc., any how I found the solution at the following url
[url=“wmusers.com”]wmusers.com