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.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.