ROUTINE Example


Example:

 

#JULEAN

DIM

^

#MONTH

FORM

^

#DAY

FORM

^

#YEAR

FORM

^

JULNDATE

ROUTINE

#JULEAN,#MONTH,#DAY,#YEAR

  

...

 

  

RETURN

 

 

The ROUTINE JULNDATE is defined using four parameters. During the execution of the subroutine, reference to any of the variables on the ROUTINE list actually refers to the corresponding variables on the CALL list. This example also shows the usage of local labels that start with a '#' character. This example could also be defined as a separately compiled subroutine that would be automatically loaded when referenced.

 

 



PL/B Language Reference ROLLOUT Examples SCAN Examples