Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cobol and VFP
Message
De
31/07/1998 17:16:04
 
 
À
30/07/1998 08:11:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00122575
Message ID:
00123213
Vues:
21
The problem is that when you do the conversion from COBOL to an ASCII fixed file the endof record character is not there, (the carriage return character), make
sure that when you export your file from COBOL to an ASCII fixed length file
the end of record (not eof()) is there, otherwise It looks like you are exporting
a file to be used in an UNIX enviroment.

Or else you will have to use the low level FREAD AND FPTUS functions

Do you know the record length of the file???

mark oliva
Pacific Mail

>>Thanks Craig Berntson.
>>
>>I know how use fopen, fread, etc...., but how i will do the importation of data?
>>Do you can help me?
>
>You'll need to pull each line into a variable with FREAD then parse the line into the proper fields using SUBSTR. Do this inside a loop while NOT FEOF().
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform