× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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
happening.

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!
http://platinum.yahoo.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.