Re: Issue using yajl_saveBuf
Posted: Fri Jul 28, 2023 9:06 pm
Sweet! I've been able to get this to work using yajl_copyBufStr()!!
I would like to be able to use the yajl_copyBuf function.
When I change my code to use the yajl_copyBuf function. I receive the error below.
Any ideas on what may be causing this?
dcl-s JSONDataLength int(10);
dcl-c ToCCSID const(37);
dcl-s jsonData SQLTYPE(CLOB:2000000) inz;
%len(jsonData) = %len(jsonData:*max);
yajl_copyBuf( ToCCSID: %addr(jsonData: *Data): %len(jsonData): JSONDataLength);
%len(jsonData) = JSONDataLength;
Errors Messages
*RNF0229 20 1 *DATA is only valid for %ADDR when the definition is a
varying-length item; *DATA is ignored.
*RNF0235 20 1 *MAX is only valid for %LEN when the definition is a
varying-length item; *MAX is ignored.
I would like to be able to use the yajl_copyBuf function.
When I change my code to use the yajl_copyBuf function. I receive the error below.
Any ideas on what may be causing this?
dcl-s JSONDataLength int(10);
dcl-c ToCCSID const(37);
dcl-s jsonData SQLTYPE(CLOB:2000000) inz;
%len(jsonData) = %len(jsonData:*max);
yajl_copyBuf( ToCCSID: %addr(jsonData: *Data): %len(jsonData): JSONDataLength);
%len(jsonData) = JSONDataLength;
Errors Messages
*RNF0229 20 1 *DATA is only valid for %ADDR when the definition is a
varying-length item; *DATA is ignored.
*RNF0235 20 1 *MAX is only valid for %LEN when the definition is a
varying-length item; *MAX is ignored.