maillist@pvxplus.com

Message: previous - next
Month: January 2002

Strange Error 11

From: Jeff Johnson <jeffj@...>
Date: 04 Jan 2002 05:07:32 -0600
Hi,

(Linux box running Pvx 5.00 with 4.xx activation)

I had a very strange problem I had to deal with late yesterday.  One of
my users was getting an error 11 on a file read.

The problem with that was that there was a ,DOM= branch on the read
statment that should have taken him to the next record.

The loop was a simple:

next_record:
k$=key(ch,end=done_section);if pos(test$=k$)<>1 then goto done_section
read(ch,key=k$,dom=next_record)recd$[all]
...
...
goto next_record
done_section:

I tried running the same operation on a different terminal, did not
receive error.
Had him sign off of system, sign back in and he gets same error on same
key.

Keyed load file
Same

ran *ufar
same

Modified program by inserting a read(ch,key=k$,err=next_record) ahead of
the dom= read.  Had user sign off system, sign back in and rerun...and
he got the same error on the line with the dom=, WHICH I HAD REM'D OUT!

Two questions beg for an answer:

1) How can you ever get error 11 on read statement with DOM= branch?

2) How is it possible that he did not get modified version of program
after releasing session and signing back on?  

Scratching my head,
Jeff