× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If this was added late in the game by the API supplier I'd beat them up and have them change the design as you suggested earlier. It really is pretty dumb thew way it is right now.


Jon

On Feb 2, 2021, at 9:41 PM, Stephen Piland <Stephen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

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

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.