Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cobol and VFP
Message
From
31/07/1998 17:16:04
 
 
To
30/07/1998 08:11:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00122575
Message ID:
00123213
Views:
22
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
Map
View

Click here to load this message in the networking platform