Format
#include <xxdtaa.h> void QXXCHGDA(_DTAA_NAME_T dtaname, short int offset, short int len, char *dtaptr);
Language Level: ILE C Extension
Threadsafe: Yes.
Description
The QXXCHGDA() function allows you to change the data area specified by dtaname, starting at position offset, with the data in the user buffer pointed to by dtaptr of length len. The structure dtaname contains the names of the data area and the library that contains the data area. The values that can be specified for the data area name are:
QXXCHGDA can only be used to change character data.
Example that uses QXXCHGDA()
#include <stdio.h> #include <xxdtaa.h> #define START 1 #define LENGTH 8 int main(void) { char newdata[LENGTH] = "new data"; /* The local data area will be changed */ _DTAA_NAME_T dtaname = {"*LDA ", " "}; /* Use function to change the local data area. */ QXXCHGDA(dtaname,START,LENGTH,newdata); /* The first 8 characters in the local data area */ /* are: new data */ }
Related Information
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.