Re:
> Will the following error be produced if my buffer is too small on my FREAD?
> read_length := -4106;
> length_read := fread(almginbd_msgf,in_port_record,read_length);
>
> ALMSGH - Unable to Read ALMGINBD.MSGF.CJISII
> ALMSGH - END OF FILE (FSERR 0)
>
> My message file is:
> ALMGINBD* 4200B VAM 0 503 1 256 1 *
Your message file is empty.
Normally, a read from an empty message file will wait (instead of returning
with an error) ... except in two cases:
1) you've told MPE you don't want to wait (via FCONTROL 45)
2) the last writer closed the file after you opened it (and there are
no messages in the file) (unless you enable extended wait yourself)
(BTW, this is part of the great design of message files...Howard Morris,
who designed them put a lot of thought into the startup/finish
semantics and got them right!)
Stan Sieler [log in to unmask]
www.allegro.com/sieler/wanted/index.html www.allegro.com/sieler