Thanks Scott, I appreciate your help.
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx>
On Behalf Of Scott Klement Hello Georgeann, RPG does not allow a dash in a variable name. You are trying to name your field 'arrt-id', but this isn't possible. RPG will assume you are trying to do subtraction (arrt minus id). There is nothing that requires your RPG variable names to match the JSON names. You are simply defining a regualr RPG data structure and assigning a value to it... so you can code this any way you wish. Perhaps you are thinking of the DATA-INTO method?
In DATA-INTO, the field names in RPG must match the document... but this is not the case with the tree method. For example, you could do something like this: when key = 'arrt-id'; Haha, as you can see, the field name does not matter, use whichever field name you wish.
If you decided to use DATA-INTO instead of the tree method, there's a feature that allows the names in the document to be 'converted' to RPG names... but, that's very different from the tree method, so I won't confuse the issue further unless you reply
and say you'd like to use DATA-INTO instead of the tree method. -SK On 9/30/2020 2:40 PM, Georgeann Rybak wrote:
|
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi