Hello,
I've a problem with the use of data-into in combination with the keyword datasubf.
E.g. my xml contains the following:
<Order>
<OrderID schemeID="REF">266108</OrderID>
<OrderStatusCode>104</OrderStatusCode>
<Remark>
<TextFunctionTypeCode>107</TextFunctionTypeCode>
<TextLines>blablabla</TextLines>
</Remark>
</Order>
There is a webservices which calls my RPG-program. We are on V7R3.
If I use the data-into everything works except the following statement:
<OrderID schemeID="REF">266108</OrderID>
The data-into contains the following (I use the PROFOUND 3th party solutions as PARSER):
DATA-INTO dataDs
%DATA(' ': 'case=convert allowmissing=yes countprefix=num_ path=Order +
allowextra=yes datasubf=value')
%PARSER( 'PUIUDFINTO'
: '{ +
"value_true": "true", +
"value_false": "false", +
"document_name": "dataDs" +
}')
;
The reason it doesn't work looks like there is a conflict with the ds-name OrderID and the extra 'schemeID' in it.
My DS looks like:
dcl-ds dataDs qualified inz;
end-ds;
I'v tried several solutions but nothing helps.
Everytime I get 'REF' in my value.
Is there somebody who can help?
Kind regards,
I've a problem with the use of data-into in combination with the keyword datasubf.
E.g. my xml contains the following:
<Order>
<OrderID schemeID="REF">266108</OrderID>
<OrderStatusCode>104</OrderStatusCode>
<Remark>
<TextFunctionTypeCode>107</TextFunctionTypeCode>
<TextLines>blablabla</TextLines>
</Remark>
</Order>
There is a webservices which calls my RPG-program. We are on V7R3.
If I use the data-into everything works except the following statement:
<OrderID schemeID="REF">266108</OrderID>
The data-into contains the following (I use the PROFOUND 3th party solutions as PARSER):
DATA-INTO dataDs
%DATA(' ': 'case=convert allowmissing=yes countprefix=num_ path=Order +
allowextra=yes datasubf=value')
%PARSER( 'PUIUDFINTO'
: '{ +
"value_true": "true", +
"value_false": "false", +
"document_name": "dataDs" +
}')
;
The reason it doesn't work looks like there is a conflict with the ds-name OrderID and the extra 'schemeID' in it.
My DS looks like:
dcl-ds dataDs qualified inz;
dcl-ds OrderID ;
value varchar(50);
End-DS;
OrderStatusCode char(3);
dcl-ds Remark ;
TextFunctionTypeCode char(3);
TextLines char(500);
END-DS;
end-ds;
I'v tried several solutions but nothing helps.
Everytime I get 'REF' in my value.
Is there somebody who can help?
Kind regards,
Comment