General information
Category:
Coding, syntax & commands
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().
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only