[Info-vax] BASIC : Updating a sequential file causes run time error SIZRECINV (156)

Robert Nelson 26212714h at gmail.com
Fri Jun 3 04:03:24 EDT 2016


Hello all
I am trying to update a sequential file with variable record lengths and get the error 156 (SIZRECINV).

Here are the details.

1. Opened file like so
   OPEN MYFILE FOR INPUT AS FILE #100% &
   ORGANIZATION SEQUENTIAL, RECORDTYPE ANY, ACCESS UPDATE, ALLOW NONE
   
   File opened successfully.

2. read successfully
   GET #100%
   MOVE FROM #100%, MYREC=RECOUNT

  
3. TEST_STR = "1234"
   NEWLEN = LEN(MYREC) + LEN(TEST_STR)

4. Update fails
   MOVE TO #100%, MYREC, TEST_STR
   UPDATE #100%, COUNT NEWLEN

I get the error when I attempt to perform the update.

Any ideas?

Thanks
    



More information about the Info-vax mailing list