[Info-vax] BASIC : Updating a sequential file causes run time error SIZRECINV (156)
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Fri Jun 3 06:33:19 EDT 2016
In article <bb082d-36a1.ln1 at news.chingola.ch>, Paul Sture <nospam at sture.ch> writes:
>On 2016-06-03, Robert Nelson <26212714h at gmail.com> wrote:
>>
>>> User Action: Supply a valid COUNT value in the PUT or UPDATE statement
>>> or a valid RECORDSIZE in the OPEN statement, whichever is applicable.
>>
>> Thanks Jan. I have already read up on this error. I believe I am
>> specifying the new size in the UPDATE clause. As for RECORDSIZE in
>> OPEN, the OPEN statement in the REFERENCE MANUAL states that BASIC
>> retrieves the record size value from the file while opening existing
>> files if not explicitly specified.
>>
>> The file in question will have variable record lengths.
>>
>
>You cannot change the size of a record in a sequential file via an UPDATE.
>
>Think about it:
>
>o - if increasing the size, where does the extra space come from?
>o - if decreasing the size, what happens to the remaining space?
>
>You can change the record size via an update with indexed files, but not
>sequential ones.
;)
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list