Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - import from a text file into vfp
Message
De
11/07/1997 17:37:06
 
 
À
11/07/1997 08:26:21
Jp Steffen
Leadership Data Services
Des Moines, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038828
Message ID:
00039603
Vues:
47
>Ok Guys! Sorry I was off the thread for a few days, but I wanted to answer Doris' question, "Why am I reprogramming Fox?" Well Doris you must be aware of some SET command or APPEND FROM argument which has of yet eluded me. Do me a favor and try this little test out. 1) Create a text file by opening a text editor and just typing into it WITHOUT inserting hard returns (No CRLF characters). Make sure to type a couple hundred characters in there for good measure. 2) Create a small .dbf table with 3 or four fields of 2 or three characters each. 3) Now use our highly esteem APPEND FROM command, APPEND FROM test.txt SDF.
>
>Doris and/or Dave, what happend on your machine? Do you know of some undocumented aurgument that tells Fox to break the strings according to the character length of the .dbf table. Not that this would change my reasons for using low-level file functions, I do things like input audits and conditionally post incoming tape data and un-packing 'packed binary' data from its original EBCDIC format. APPEND FROM is limited. Yes your right Doris, Low-level file functions can be a big performance hit. Sometimes I use a langauge a little closer to the hardware. But in many cases Fox's LL File functions allow me to read in, interpret and audit incoming data as it would normally come to me form an Standard 9 Track Tape.
>
>Dave, I never said you were a lazy programmer.
>
>JP

You didn't say it, HE did! But I see your problem now, APPEND FROM will not handle Binary data or EBCDIC data format. You didn't mention that you were dealing with that type of data.

As for your little test, I really didn't need to run it since we get files that vary from 800K to 80Meg from the Comptroller's office every day (size depends on number of transactions for a given day) that only has a LF (a 'soft' return) at the end of the record line. Fox has no problems handling this while the UNISYS-COBOL mainframe herfs all over itself. In fact, it is becoming apparent that the best way for us to fix the problem is to run it through Fox BEFORE we upline to the MF.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform