Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

GENFILE file definition


3 replies to this topic

#1 Dan Shannon

Dan Shannon

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 374 posts
  • Gender:Male
  • Location:Australia

Posted 03 April 2000 - 11:46 PM

We seem to have problems with reading and writing genfile - keep getting either 035 - DATA NOT ALPHA IN FILE or 038 - NOT ENOUGH DATA IN BUFFER - EXTERNAL FILE errors

Does anyone have a solution or the right GENFILE layout? We're using 4.0r541 on SCO.

Thanks

Dan Shannon

#2 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 216 posts
  • Gender:Male
  • Location:Netherlands

Posted 04 April 2000 - 08:24 AM

You will have to issue a ENABLE(&#@SEPEF) logic prior to reading GENFILE in Change or Add mode

#3 Chris Pepper

Chris Pepper

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:United Kingdom

Posted 04 April 2000 - 01:36 PM

Further to Wim's message...
That's because GENFILE should be defined as EXTERNAL. External format files assume that the records are fixed length and PRO-IV errors if the record is not as long as it is supposed to be (it seems to throw away the last incomplete field). The &#@SEPEF is just a kludge to let routines like Import/Export find value variables in the records.

#4 Dan Shannon

Dan Shannon

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 374 posts
  • Gender:Male
  • Location:Australia

Posted 05 April 2000 - 06:48 PM

Thanks gentlemen, I have it now!



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Click the link below to see the new game I'm developing!