.KEYWORD jfile
.FLYINGHEAD PALMPILOT DATABASICS
.TITLE Importing JFile databases
.OTHER
.SUMMARY Did you know you could set up your own custom databases on your PalmPilot? Well, you can and JFile is one program that makes it possible. In this hands-on article, Jason Perlow takes you through an important part of the process — importing information from your PC into the database. This one’s too handy to pass up!
.AUTHOR Jason Perlow
Have you ever wanted to put your own custom database on your PalmPilot? Perhaps you collect and trade comic books or baseball cards and you’d like to be able to randomly query information about an item in your collection, such as price data, descriptive information and the condition of the item. Or how about keeping a company directory of phone extensions, beepers and other custom data handy, but you don’t want to go through the pain of importing them into your Pilot using Address Book? What about your Christmas card or gift list? All of these things can be difficult to manage on the PalmPilot without using a real database program. Fortunately JFile 3.0 from Land-J Technologies fills this void.
Some readers who frequent the PalmPilot software and document distribution Web sites such as MemoWare and PilotGear may already be familiar with JFile and the various public domain databases that have been published. Maybe you’ve wanted to make a database for JFile yourself, but the thought of programming and data entry scared you away from doing so. Fear not, Piloteer! Making a JFile database is easy!
JFile 3.0 is a simple database program which allows you to take information from text files, PC spreadsheets and PC databases and import them into your PalmPilot using a data conversion program called JCONVERT, as shown in Figure A. With version 3.0 of JFile, JCONVERT now comes as a Windows 95 program, so you don’t have to worry about mucking around with the command line utilities if you don’t want to.
.FIGPAIR A Convert your Windows 95 database to JFile format with JCONVERT.
So where do you get data to import? Presumably, you’ve already got a spreadsheet or a database on your PC that you’d like to get on your PalmPilot. Or maybe you saw some data on a web page that you’d like to import. For our example, I copied some baseball pitching data off of the CBS Sportsline web site.
You’ll notice that it’s just a simple text document, with statistics laid out in a table. To make the data for our database file, I copied a large block of baseball pitching stats from the web page and pasted it into Windows 95’s Notepad. After I pasted it into Notepad, I saved it as a regular MS-DOS text file, DEMO.TXT.
The next step is getting the data into a format that JCONVERT can understand. JCONVERT can understand data in one of two ways, either using Comma Separated Variable (CSV) or Semicolon Separated Variable. If you’re using a database program or a spreadsheet on your PC such as Microsoft Excel, Microsoft Access, FoxPro, dBASE or Delphi, all you have to do is to save your program as a CSV file and convert it to a JFile database with JCONVERT. But be advised there are some things you might need to change in your PC database, because JFile has certain limitations, such as:
.BEGIN_LIST
.BULLET Field names can be no longer than 20 characters.
.END_LIST
.BEGIN_LIST
.BULLET You can only have 20 fields per database.
.END_LIST
.BEGIN_LIST
.BULLET You are limited 500 characters per field of data.
.END_LIST
To make our DEMO.TXT file a CSV, I had to enlist the help of my favorite spreadsheet. I opened DEMO.TXT in Microsoft Excel 97, which recognizes the data as text and automatically launches the Text Import Wizard. The data in each column is of a fixed width using spaces in between, so Excel can easily determine that the data in each column represents a cell of data. Once I was able to import the data into a Excel worksheet, I put in a field name for each column of data in the first row, making sure that I didn’t exceed 20 characters of data per field name. I saved the file as DEMO.CSV, ran JCONVERT, installed the compiled .pdb file on my PalmPilot, and Sha-zam! My database of 1998 Major League Baseball pitcher statistics was ready for use.
Of course, you might not be so lucky to find text on the Web in perfect columns, so you might need to massage the data in a text editor or move it around in your favorite spreadsheet program first. But now at least you understand how simple the process is, right?
Ah, the light at the end of the tunnel is always so refreshing.
.BEGIN_SIDEBAR
.H1 Product availability and resources
JFile is available at http://www.land-j.com.
Baseball stats are available from the CBS Sportsline web site at http://ww1.sportsline.com/u/archive/baseball/mlb/1998/May-28/ystatalpit.htm.
.END_SIDEBAR
.BIO Jason Perlow is a computer consultant and freelance writer living in the NYC metro area. He can be reached via email at the incredibly cool address of jason@argonautsystems.com.
.DISCUSS http://www.component-net.com/webx?13@@.ee6c008


