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.
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 ) ;