Length of the CDR area
When coding IOSCDR, you must ensure that the CDR area is
large
enough to receive the entire CDR. If the length you specify on the
CDRLEN parameter is smaller than the size returned in the CDRSIZE
parameter, IOSCDR retrieves a partial CDR. As shown in Figure 1, the size of the actual CDR is 256
bytes, but CDRAREA
is only 128 bytes. In this case, CDRAREA could hold only half of the
actual CDR. To obtain the entire CDR, reissue IOSCDR with a CDRLEN
value that is equal to or greater than the 256 bytes returned in CDRSIZE.
Figure 1. Comparison
of CDRLEN to CDRSIZE