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

Syntax and Example of INLINE Perform


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bala-lakshmi

New User


Joined: 01 Mar 2004
Posts: 6

PostPosted: Mon Mar 01, 2004 4:24 pm
Reply with quote

hi friends,
can any one of u tell me about in-line perform statements,it's syntax
with an example program.
bye,
lakshmi icon_lol.gif
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Mon Mar 01, 2004 6:34 pm
Reply with quote

MOVE 1 TO I.
PERFORM UNTIL I > 5
DISPLAY ' HELLO LAKSHMI...'
COMPUTE I = I + 1
END-PERFORM.

It will display HELLO LAKSHMI 5 times.

In line Perform is used when there is 1-2 (depending on some other conditions) executable statements. In that case a new Paragraph or section may not be worthy...

Regards,
Sandip.
Back to top
View user's profile Send private message
srimsc_ibmmainframes

New User


Joined: 17 Feb 2004
Posts: 19
Location: pune

PostPosted: Sat Mar 05, 2005 9:29 pm
Reply with quote

THE DEFINITION OF IN-LINE PERFORM IS
IN-LINE PERFORM STARTS WITH PERFORM FOLLOWED BY STATEMENTS TO BE EXECUTED AND ENDS WITH END-PERFORM.
SYATAX IS.............
PERFORM
statements to be executed
-----------
-----------
END-PERFORM.

HOPE HELP THIS.
Back to top
View user's profile Send private message
mmunirathnam

New User


Joined: 14 Mar 2005
Posts: 4
Location: Srikalahasti

PostPosted: Tue Mar 15, 2005 10:39 am
Reply with quote

The Inline Performs are worked until there is no inrenal GOTO statements,
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Use of Perform Thru Exit COBOL Programming 6
No new posts CNTL= Command Syntax Documentation CA Products 3
This topic is locked: you cannot edit posts or make replies. issue with Syntax error SYNCSORT 2
No new posts Need help on DB2 compound SQL or Inli... DB2 3
Search our Forums:

Back to Top