This week’s APIs By Example revisits the challenge of handling an externally defined record buffer. In a previous installment (see the link below), I demonstrated how to parse data from an externally defined record buffer. This time I will show how you can update an externally defined record buffer using various APIs, MI built-ins and C library functions.
Using this technique, many types of file and data exchanges could be soft coded throughout the whole exchange process. However, note that updating production data at the buffer level requires careful design and a high level of precaution — this example primarily intends to offer a starting point for such an endeavour.