7 92 SUBROUTINE

LANSA Technical

7.92 SUBROUTINE

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.92.1 SUBROUTINE Parameters

7.92.2 SUBROUTINE Comments / Warnings

7.92.3 SUBROUTINE Examples - Part 1

7.92.4 SUBROUTINE Examples - Part 2

7.38 ENDROUTINE

7.45 EXECUTE

EVTROUTINE

MTHROUTINE

PTYROUTINE

                                                         Required

 

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

 

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

                                                         Optional

 

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

                             |                 *RECEIVED  |

                             |                 *RETURNED  |

                             |                            |

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