Is the record your reading at the end of the file (by
the key on cafpmast)?  You are not checking for %eof
and getting out of the loop when you reach the end of
the file so it's my guess that this is what is

Scott Mildenberger

--- jrc@xxxxxxxxxx wrote:
> Thanks to everyone who has responded to this: with
> Scott's help I was able to break into the running
> job in debug and find where the endless loop is
> occuring, but it makes no sense to me.
> Here is the loop:
> dow MLNAM = NAMEIN; 
>   if MMAP = LASTMAP;
>     read cafpmast;  
>     leave;          
>   endif;            
>   read cafpmast;    
> enddo;              
> MLNAM is the field from the file and there is only
> one record in the file with this name.  In debug I
> can see the read statement processing, but it never
> moves to the next record, so the field value cannot
> change.
> After EVERY read I get the same MLNAM and MMAP (both
> fields from cafpmast), so I never get out of the
> loop.  How can this be???  

Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.