Monday 12 October 2015

PLI Subroutines and top Interview Questions

In PL/I, a Subroutine is called by using CALL statement.

CALL Subrt(x,y,z);

  • Subroutines, which are separately compiles from the invoking procedure are called external procedures.
  • Each subroutine name should not be more than 8 chars.
  • Should not give STOP or EXIT statement in Subroutine. If we give it terminates total program execution. Actually this is main program's responsibility.

In the main program:
.
.
DECLARE Subrt entry;
CALL Subrt(x,y,z);
.
.
In the Subroutine:
.
Subrt: Proc(a,b,c)
.
.
.
END Subrt; 

No comments:

Post a Comment