Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 60953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:14:33+00:00 2026-05-10T18:14:33+00:00

I have a flat-file schema that has a header and detail records. It looks

  • 0

I have a flat-file schema that has a header and detail records. It looks something like this:

HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** 

I need to append two blank lines at the end of the message. Right now, if I have multiple records I get the following output:

HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** 

What I want to see happen is something like this:

HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000***   HDR**2401*XX0062484*22750***20081006000000*000******* LIN**001*788-0538-001*4891-788538010*20000*EA**0000*** 

I could build a custom pipeline component to do this, but I’m wondering if there is a simpler way of getting what I need?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:14:34+00:00Added an answer on May 10, 2026 at 6:14 pm

    You should be able to accomplish what you want by using the Delimiter properties of the flat file schema.

    Based on your example file I created a schema with the following record structure:

     <Schema>       <Root>         <HDRGroup>           <HDR>           <LIN>     

    If you click on the root node of your schema you should see a list of properties for this root node. One properties section has the header ‘Flat File’. In this flat file section the first three properties you can set are Child Delimiter, Child Delimiter Type and Child Order.

    This is where you configure the schema to create the blank lines (in this case CR LF but you can set different things as you need) For your example I set the following:

     Child Delimiter: 0x0D 0x0A 0x0D 0x0A     Child Delimiter Type: Hexadecimal     Child Order: Infix 

    0x0D 0x0A is a carriage return line feed, so the above simply creates two blank lines, infixed between each child of the root node.

    The <HDRGroup> then functions to make sure that each header and its lines is kept together. For its delimiter settings I set:

     Child Delimiter: 0x0D 0x0A     Child Delimiter Type: Hexadecimal     Child Order: Postfix 

    The <HDR> and <LIN> records then contain the actual schema definition for your message lines, delimited with an asterisk.

    This schema works for something that looks to me like what you have asked for – this sort of flatfile schema and how it parses a file is highly dependant of the little details, however, such as what type of line breaks there are and if there are line breaks at the end of the file.

    The princples of using the delimiters will stand, you will likely find you need to tinker with the settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a flat file source from Excel that has a structure like this:
The problem : I have multiple parallel processes that handle flat file records .
I have a flat file of e-mail header data that I'm trying to parse
I have a windows mobile 5.0 application (smartphone) that contains a flat data file
I have a tab delimited file on a shared path. I've setup that flat
I have input data coming from a flat file which has english, japanese, chinese
I have a flat data file that I need to import into my SQL
I have a Flat File Source that reads data from a file with two
I have a flat file that I'm trying to scrub for import into a
I have a flat file with xml data that contains parent and child information

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.