Thursday, December 20, 2007

What are the different types of parameters a subroutine can have?

There are two types of parameters:

Formal parameters: Parameters which are defined during the definition of subroutine with the FORM statement. Formal( Output) parameters are used to pass data from subroutines.

Actual parameters: Parameters which are specified during the call of a subroutine with the PERFORM statement. Actual( input) parameters are used to pass data to subroutines.

No comments:

Blog Archive