|
On 2019-01-31 4:31 PM, mlazarus wrote:
I'm trying to use DATA-INTO using YAJLINTO. It's based on one of Scott's examples....
Sometimes it's useful to get a trace from DATA-INTO.
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzasm/roaDataIntoTrace.htm
In this case, the problem is that you have your Data subfield defined as a data structure, but the JSON array is an array of strings.
Try defining the Data subfield as just a CHAR(50) array instead of a data structure array with a CHAR(50) subfield.
dcl-ds MyData qualified;
Code varchar( 5 ) ;
Message varchar( 50 ) ;
num_Data int( 10 ) ;
Data char( 50 ) ;
end-ds;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.