View previous topic :: View next topic
|
Author |
Message |
Appu
New User
Joined: 26 Apr 2010 Posts: 73 Location: India
|
|
|
|
Hello Team,
Is it possible to make a GOTO statement to a label inside a procedure.
eg:-
PROC1: PROCEDURE;
LABEL1:
PUT SKIP LIST('inside label1 of proc1');
END PROC1;
GOTO LABEL1;
It is giving compile time error as the label LABEL1 is inside the proc. Anyother way to make this call happen ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
since PL/I is a block structured language jumping in/out of a block
IS as You already noticed FORBIDDEN
no reason to ask how to do it |
|
Back to top |
|
|
Appu
New User
Joined: 26 Apr 2010 Posts: 73 Location: India
|
|
|
|
thanks for the confirmation |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
From the perspective of a cleanly written program, why would you want to do this? I presume you have defined the block of code to perform some specific task. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Would the RECURSIVE option work for what you're trying to do?
Bill |
|
Back to top |
|
|
|