You can create elements in an array that are similar to parameter definitions, and you can pass certain parameters as an array. For example, multiple instances of data can be passed within the parameter.
By passing a parameter as an array, multiple instances of data can be passed in or out in a single call to a function. For example, if a customer record structure is defined in the Customer array on the *Arrays file, you can use that array to define a parameter to an EXCEXTFUN or EXCUSRPGM being passed as RCD (ARRAY). Anywhere from a few to thousands of customer records can be passed in that one parameter in one single function call.
Arrays are defined over the *Arrays file and can be defined to contain any subset of the fields in the model. Arrays can also be specified as parameters to any function. Using arrays allows you to define any subset of fields as parameters to any function. Do this by creating an array definition with the appropriate field and specifying it as a parameter entry. This process is similar to using structure files for parameter lists but unlike structure files, it is under the control of *PGMR.
Notes:
You can pass an array as a parameter using one of two methods:
For more information about arrays, see the chapter "Defining Arrays" in the Building Access Paths Guide.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |