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

In which situation can we used inline perform


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
namashlr
Currently Banned

New User


Joined: 27 Aug 2006
Posts: 5

PostPosted: Wed Sep 27, 2006 6:22 pm
Reply with quote

In which situation can we used inline perform? and what is the major advantage of inline perform?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Sep 27, 2006 7:10 pm
Reply with quote

Hi,

This will be helpful
publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol3.doc/tpaid08.htm
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Sep 27, 2006 7:14 pm
Reply with quote

Hi !

Difference of the two Perform formats:

Perform SectionName

Perform until ind-01 > 10
move a to b(ind-01)
set ind-01 up by 1
End-Perform

When you have a lot of continuous code for doing something in particular,
it's better to do this in a section. Several sections for several functions.
Makes your programm transparent.

To code a little loop, like in my example above, use inline-perform.
Inline-Perform can be used anywhere in your programm.

Regards, umeySan
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 Use of Perform Thru Exit COBOL Programming 6
No new posts Need help on DB2 compound SQL or Inli... DB2 3
No new posts in-stream data set (inline data set) ... JCL & VSAM 4
No new posts Unique sort situation.... SYNCSORT 6
No new posts How to perform Digest Access Authenti... All Other Mainframe Topics 0
Search our Forums:

Back to Top