import

Jeff Harrison jeffaharrison at yahoo.com
Mon Jan 9 13:27:10 PST 2006


Yes, however, in my opinion the most straight forward
way to do this would be to use filepro's ability to
define a non-filepro (alien) file.

Use the #1 option for define files, and specify #2
"non-filepro file".  Then just enter the appropriate
path to the file, and the field names and lengths. 
You can then either use this file directly as a
"filepro" file, or else set up an archive process to
copy the records to a "real" filepro file.

Alternately, if your file has a record separator
character such as a New Line you could use something
like the following:
@menu:::
loop:::
::import ascii imp = /f/appl/fpmerge/tgicaps.txt r=\n:
:not imp:goto endit:
::xx=imp(1):
::'  manually parse out fields from xx and write them
to another file:
::goto loop:

Another option would be to use the raw IO commands
such as read or readline if appropriate.  Again, I
think that the alien file would be the easiest option.

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The easiest and
fastest ways to generate code for filePro exports and
imports.

--- Steven Waters <swaters at triumphinstruments.com>
wrote:

> SCO UNIX / FP 5.0.14
> 
> Hello,
> Can Filepro import a fixed length file?
> If so, what is the syntax for IMPORT? 
> Assuming that IMPORT is the right command.
> I am not sure what to put after tgicaps.txt.
> 
> import ascii imp = /f/appl/fpmerge/tgicaps.txt
> 
> Thanks,
> Steve
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
>
http://mailman.celestial.com/mailman/listinfo/filepro-list
> 



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



More information about the Filepro-list mailing list