![]() Passing Arguments Between PROIV and a Subroutine |
![]() Virtual Machine |
![]() |
Arguments can be passed from PROIV to the subroutine for processing. Similarly, results can be returned from the subroutine to PROIV using these arguments. Arguments to be passed to the subroutine are included after the subroutine name in the LINK/LINK-CRT statement.
LINK(sub-name{,arguments}) or LINK-CRT(sub-name{,arguments})
The arguments specified in the LINK/LINK-CRT statement are passed to the corresponding arguments specified following the respective subroutine name in cstubs.c. For example, LINK(SUB3,#stat,qty) passes '#stat' and 'qty' to the corresponding arguments in the subroutine specified by sub3(#stat,qty).
Topic ID: 750040