Too many nested gosubs
Kenneth Brody
kenbrody at spamcop.net
Thu Nov 14 10:39:26 PST 2013
On 11/14/2013 1:33 PM, Richard Kreiss wrote:
[...]
>> GOSUBs can be nested up to 64 deep. However, why should the number of
>> files make a difference here, since I would hope that your subroutines
>> issue a RETURN when done?
>
> It does until it reaches a date which is within 60 days of today and then
> there is a goto.
Why? A subroutine must, by definition, end with a RETURN. If you use GOTO,
then you are still in that subroutine.
> I modified the program to use a goto and put a label in the processing
> line. That cleared up the problem.
>
> However, a return was issued, the file deleted and then the next file was
> gotten by incrementing the array index and the process repeated. I think
> that is what the program didn't like. On the return from the system call
> there was a goto. Maybe I should have put in a return here also.
See above.
--
Kenneth Brody
More information about the Filepro-list
mailing list