Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Syntax and Example of INLINE Perform

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
bala-lakshmi

New User


Joined: 01 Mar 2004
Posts: 6

PostPosted: Mon Mar 01, 2004 4:24 pm    Post subject: Syntax and Example of INLINE Perform
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
References
sandip_datta

EXPERT


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

PostPosted: Mon Mar 01, 2004 6:34 pm    Post subject:
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    Post subject: IN-LINE PERFORM
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: 6
Location: Srikalahasti

PostPosted: Tue Mar 15, 2005 10:39 am    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1