Making remote calls using a routine call block
Although %RXSUBR is the primary means of making remote calls, you can also make remote calls by directly manipulating a routine call block (RCB) with the RCB_xxx routines. There are several reasons for using the RCB_xxx routines:
- You need to pass a variable‑length parameter.
- You need to pass a parameter that exceeds 64K in size. For array parameters, the total size of the array may exceed 64K as long as each individual array element is less than 64K. The maximum size for an arrayed field in Synergy DBL is 256 MB.
- You want to optimize your code. If you’re making a call multiple times and you wish to avoid the overhead of building the argument block multiple times, you can optimize your code by using the RCB routines.
For more information, see Handling variable‑length and large data and Passing arrays larger than 64K. For instructions on using the RCB routines and the RCB routine syntax, see see Synergy Routine Call Block API.