[Info-vax] MAX record size in a sequential file
Arne Vajhøj
arne at vajhoej.dk
Tue May 15 18:59:24 EDT 2012
On 5/15/2012 10:17 AM, Johnny Billquist wrote:
> On 2012-05-15 03.30, StGallen wrote:
>> On Tuesday, May 15, 2012 12:39:42 PM UTC+5:30, Johnny Billquist wrote:
>>>
>>> I think your basic problem is that the file do not have a fixed record
>>> length, so how do you expect the map to work?
>>> When dealing with variable record lengths, you need to be more clever.
>>> (What's wrong with just opening the file and doing LINPUT on it?)
>>>
>>> Johnny
>> LINPUT will only work with terminal format files. BASIC run time error
>> = 164.
>> OPEN ABC_FILE FOR INPUT AS FILE #158%,&
>> ORGANIZATION UNDEFINED,&
>> RECORDTYPE ANY,&
>> ACCESS READ,&
>> ALLOW NONE
>>
>> LINPUT #158%, ABC_REC !==> 158 must be a Terminal Format file.
>
> So why do you (in this example) open the file specifying "organization
> undefined"?
Probably because he thought it meant undefined (as in "this app does
not know") as opposed to undefined (as in FAT$C_UNDEFINED / FAB$C_UDF).
Arne
More information about the Info-vax
mailing list