Most definitely did fix it! Thank you so much!
On your previous note... I agree, looking back, maybe could have taken a different approach. These data 010, etc elements were added after we headed down the DATA-INTO path. Still might try and re-work down the road.
Thanks again!
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Scott Klement
Sent: Tuesday, February 2, 2021 5:02 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: YAJLGEN and 'Variable' Named Elements
Stephen,
I tried your example, and I noticed a really silly bug in YAJLINTO. It does not recognize a number that begins with a leading zero... oops! So, no, this has nothing to do with "StoreTotals".
Give this a try:
1) Open the YAJLINTO source member in RDi
2) Find do_field_name subprocedure.
3) Find this code:
if ctx.number_prefix <> ''
and %subst(deref:1:1) > '0' and %subst(deref:1:1) <= '9';
4) The problem is the > '0' it should be >=. Change it so it looks like
this:
if ctx.number_prefix <> ''
and %subst(deref:1:1) >= '0' and %subst(deref:1:1) <= '9';
5) Run the BUILDYAJL program to recompile.
Let me know if that works for you, and I can update my web site.
--
Scott Klement
sk@xxxxxxxxxxxxxxxx
On 2/2/2021 4:17 PM, Stephen Piland wrote:
Another twist I'm uncovering when doing DATA-INTO with number_prefix of YAJL_ in YAJLOPTS...
When executing the DATA-INFO in the example below, it does not add YAJL_ to 010 therefore not loading into the Data structure. It does add it on an earlier element in the document.
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.