7.121 SUBROUTINE

Note: Usage options

The SUBROUTINE command is used to define the start of a subroutine and optionally nominate parameters which must be passed to it.

Portability Considerations

Subroutines that are nested inside one another are not supported in the current release of Visual LANSA. This is a very rarely used coding technique and thus unlikely to cause any problems. In the event of problems simply unnest the subroutine(s) involved and recompile.

Also See

7.121.1 SUBROUTINE Parameters

7.121.2 SUBROUTINE Comments / Warnings

7.121.3 SUBROUTINE Examples - Part 1

7.121.4 SUBROUTINE Examples - Part 2

7.49 ENDROUTINE

7.57 EXECUTE

EVTROUTINE

MTHROUTINE

PTYROUTINE

                                                         Required

 

  SUBROUTINE --- NAME --------- subroutine name ---------------->

 

 -----------------------------------------------------------------

                                                         Optional

 

             >-- PARMS -------- field name --  *BOTH -----------|

                             |                 *RECEIVED  |

                             |                 *RETURNED  |

                             |                            |

                              ----------- 50 max ---------