View previous topic :: View next topic
|
Author |
Message |
venkat4ibm
New User
Joined: 27 Apr 2005 Posts: 2 Location: hyderabad
|
|
|
|
what is the difference in between inline perform and perform? and give me one example
regards |
|
Back to top |
|
|
gnagakishore
New User
Joined: 26 Mar 2005 Posts: 25 Location: Hyderabad
|
|
|
|
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 |
|
|
venkat4ibm
New User
Joined: 27 Apr 2005 Posts: 2 Location: hyderabad
|
|
|
|
hai please give me reply on above question |
|
Back to top |
|
|
ssowjanya
New User
Joined: 29 Apr 2005 Posts: 13
|
|
|
|
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 |
|
|
|