Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Parsing an imported flat file

Featured Replies

I'm getting a flat file from an MIS department and I need to update my solution's information with any new information. I've decided to import each record into an "imported data" field then parse it and set it into its appropriate fields, then do a "compare records" to update my existing data.

My problem is in the parsing of the data. I can direct how I'll receive the data (i.e. csv, tab-sep) and the order of the fields.

But, I cannot direct how many words will be between each separator. Does anyone have a good recommendation for moving through a field of data (of no pre-set field length or characters)? I tried LeftWords, but some fields have multiple words. If I use Position and set the search string, what's the command to "grab" or "get" the text between these searched characters? MiddleWords seems to fail me.

Also, if someone has a better idea to my flat file dilemma, I'm all ears.

Thanks.

It'd be easier keeping the data in separate fields, then compare the fields to the main table.

  • Author

Yes, I agree. But, I'll get it as a flat file.

I noticed in another thread someone discussed parsing and setting the information into the appropriate fields during import. Maybe I'm a bit too novice to have that figured out. I agree, that would save a step, but I still have to parse on import, no?

Thanks for your interest.

I must be confused as to what you mean by "flat file".

A flat file usually contains fields and records. There are delimiters between fields (commas or tabs) and delimiters between records (carriage returns). When FMP imports a file it'll put it into fields and records automatically.

What is it that you're getting?

  • Author

Oh the lessons we learn the hard way.

I was under the impression that my flat file would have comma separators but that FileMaker wouldn't see them. DUH! I've spent way too many hours trying to figure out how to parse the data into fields. Feeling very silly at this point.

Please feel free to disregard this thread. And, thanks for your reply.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.