Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cobol and VFP
Message
 
 
À
29/07/1998 21:48:25
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00122575
Message ID:
00122686
Vues:
16
>Hello All
>
>I'm impoting data from Cobol to VFP using
>append from type sdf
>append from alunos type sdf, and the vfp shows me the follow error message: Line too long
>
>Anyone can help me?
>
>Thanks

Hi Anderson,

If the problem is that there are no CR/LF's at the end of each input record, you can write a little program to copy the file and put them there. Then you can do an APPEND FROM ... TYPE SDF from the file you created.

For example, if the input record is 100 bytes long, and lnInputFile and lnOutputFile are the low-level file handles for your input and output files, then the main loop would look like this:
do while not feof(lnInputFile)
   lcInputRec = fread(lnInputFile, 100)
   =fputs(lnOutputFile, lcInputRec)
enddo
The FPUTS statement puts the CR/LF at the end of each record.

HTH,
Rick

BTW, where in Brazil are you? I lived in Rio for three years...
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform