Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement