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

Inline perform and perform statement in cobol


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

New User


Joined: 27 Apr 2005
Posts: 2
Location: hyderabad

PostPosted: Wed Apr 27, 2005 2:58 pm
Reply with quote

what is the difference in between inline perform and perform? and give me one example
regards
Back to top
View user's profile Send private message
gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Wed Apr 27, 2005 8:42 pm
Reply with quote

in line perform is used when u r gaurenteed that the code inside the
scope of the perform is not used by any other .
ex. perform ... <until..>
----sentences-----
----sentences----
end-perfom.
AS i think u knw about perfom iam giving its details
Back to top
View user's profile Send private message
venkat4ibm

New User


Joined: 27 Apr 2005
Posts: 2
Location: hyderabad

PostPosted: Thu Apr 28, 2005 12:55 pm
Reply with quote

hai please give me reply on above question
Back to top
View user's profile Send private message
ssowjanya

New User


Joined: 29 Apr 2005
Posts: 13

PostPosted: Fri May 13, 2005 12:21 pm
Reply with quote

Hi,
INLINE Perform: When we r sure if the code is not repetitively used anywhere else in the program, then inline can b used
PROCEDURE DIVISION.
PARA-1
PERFORM UNTIL condition...
.......stmts........
END PERFORM.
STOP RUN.
PERFORM: It is used when the group of code is used several times in the program.
PERFORM is advisable if there is repetition of code
PROCEDURE DIVISION.
PARA-1.
PERFORM PARA-2 UNTIL condition
....stmts....
STOP RUN.
PARA-2.
.....stmts....
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 Replace each space in cobol string wi... COBOL Programming 2
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