Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Limit on number of RETURN commands left hanging via CTRL/Y abort?

97 views
Skip to first unread message

alanfe...@gmail.com

unread,
May 5, 2023, 10:34:42 AM5/5/23
to
Greetings,

I have a DCL command procedure that uses GOSUB subroutines. Now what if you exit one or more of them via CTRL/Y? Is it a problem to have too many RETURNs left hanging like that? TIA!

Chris Townley

unread,
May 5, 2023, 11:28:45 AM5/5/23
to
On 05/05/2023 15:34, alanfe...@gmail.com wrote:
> Greetings,
>
> I have a DCL command procedure that uses GOSUB subroutines. Now what if you exit one or more of them via CTRL/Y? Is it a problem to have too many RETURNs left hanging like that? TIA!

Trap them with ON... within the subroutine, then return perhaps with a flag


--
Chris

alanfe...@gmail.com

unread,
May 5, 2023, 4:39:40 PM5/5/23
to
Well, after working some more on the DCL command procedure, it seems to me that it's harmless to leave RETURN's hanging. Never mind.

bill

unread,
May 5, 2023, 4:58:00 PM5/5/23
to
I wouldn't say harmless. You just didn't overflow the stack yet. :-)

bill

alanfe...@gmail.com

unread,
May 6, 2023, 2:12:21 AM5/6/23
to
Yes, I do recall reading recently somewhere that you can run out of space for symbols and labels and the like. But RETURN's seem to just be unattached to anything.

OK.
0 new messages