RPC HELP RPC Limits Max size of array
Maximum Size of Array
Although approximately only 240 characters can be sent to the VistA M Server as call parameters, a single array parameter can be passed in with greater capacity. The RPC can carry both literal and array parameters except that literal parameters are placed first and the single array last in order. Arrays are instantiated at the VistA M Server and are stored in a local array format. The maximum size will be dependent on the symbol space available to the VistA M Server process. The index size and the value size are subject to limitations as follows: Index and value each cannot exceed 255 - 3, or 252 characters approximately for each individual array elements.
At the time of this writing, 30 to 40 K arrays have easily been passed to the VistA M Server in a single RPC call.