View previous topic :: View next topic
|
Author |
Message |
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
Hi Friends..I am new to PL/I. Do we have equivalent stmt like 'CONTINUE' in COBOL?
Thank You.
Madhu |
|
Back to top |
|
|
tsantosh
New User
Joined: 03 Aug 2006 Posts: 8
|
|
|
|
we don't have continue in PL/1 but we can have a null statement (just semi-colon) which works the same.. eg
IF condition THEN
;
ELSE
do something; |
|
Back to top |
|
|
karnatikalyan
New User
Joined: 08 Feb 2006 Posts: 5
|
|
|
|
Hi,
It is LEAVE;
Ex:-
DO I = 1 TO 10;
PUT SKIP LIST(I);
IF I = 3 THEN LEAVE;
END;
THE SYNTAX IS:
LEAVE;
LEAVE labelname;
Another example is
IF A = B THEN
SO I = 1 TO 10;
IF I = 4 LEAVE S;
END;
ELSE
T: DO;
SOME STATEMENTS;
END;
R: STATEMENT;
IN THIS CASE IF THE LEAVE IS EXECUTED THE CONTROLL COMES TO R NOT TO T
THANKS,
KARNATI. |
|
Back to top |
|
|
|