News
Abstract
IBM i 7.5 adds another value to the Algorithm parameter for MI Instruction "Compress Data" (CPRDATA). The new ZLIB algorithm produces a smaller result and improves performance over existing options.
Content
Compress
char *src = <data to be compressed>;
char *tgt = <buffer to hold compressed data>;
_CPRD_Template_T template;
memset(&template, 0, sizeof(_CPRD_Template_T));
template.Source_Length = <size of data to compress>;
template.Result_Length = <length of target buffer>;
template.Algorithm = 3; /* zlib, defaults to automatically use NX accelerator when it runs in Power10 mode on the Power10 processor** */
template.Source = &src;
template.Result = &tgt;
_CPRDATA(&template);
Was this topic helpful?
Document Information
Modified date:
11 May 2022
UID
ibm16579237