IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

In PL/I Do we hv equivalent stmt like 'CONTINUE' in COBOL?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rssomm

New User


Joined: 05 Jun 2005
Posts: 41
Location: Hyderabad

PostPosted: Wed Jul 12, 2006 8:10 pm
Reply with quote

Hi Friends..I am new to PL/I. Do we have equivalent stmt like 'CONTINUE' in COBOL?

Thank You.
Madhu
Back to top
View user's profile Send private message
tsantosh

New User


Joined: 03 Aug 2006
Posts: 8

PostPosted: Fri Aug 25, 2006 6:12 pm
Reply with quote

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
View user's profile Send private message
karnatikalyan

New User


Joined: 08 Feb 2006
Posts: 5

PostPosted: Wed Sep 13, 2006 2:28 am
Reply with quote

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
Sicon_biggrin.gifO 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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top