Solved

Export PFS:FILE format to dbase format

Posted on 1998-04-15
2
728 Views
Last Modified: 2013-11-24
I'm trying to export a file in Pfs:file format to dbase format but only takes first 180 fields using dbase IV IMPORT command. How I Can get all fields (about 500)?
0
Comment
Question by:juanca
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
ID: 1026270
There is an excellent tool for working with .dbf files available on AOL and on the net (look for File Pile), known as DBFLOOK.  With registration comes a set of tools containing an import and export programs for creating .dbf files.  DBFLOOK itself can be used to make a fixed record length extract file become a .dbf by prefixing a dbf header to the file.  It will also create a header to be used as well, allowing you to specify field names, sizes and types. If you can extract the pfs file to a fixed length record format, I can help you use this tool to convert it into a .dbf.

I've worked extensively with the .dbf format in enterprise level applications with hundreds of .dbf files involved.
email me at cymbolic@aol.com if you need more help, or to send a sample file for conversion.
0
 

Expert Comment

by:rbfine
ID: 1026271
If you haven't found an answer, here's what I do:

1. Export the file in fixed length format, if possible.  All the fields at once.  This is also known as an 'SDF' file.

2. Create a dbase structure with fields in it like 'Field1, character 200', 'Field2 Character 200', etc.  You can create up to 254 of them if you need to.  Oops, dBase IV allows more.

3. Append from the SDF file you exported before by using the APPEND FROM ... SDF command.

4. You can then split the fields as necessary, either programmatically or with console commands.  If you pick the field lengths in the 2nd step smartly, you'll have a much easier task of it.

rbfine@finesoft.com

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This collection of functions covers all the normal rounding methods of just about any numeric value.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now