Search found 249 matches

by jonboy49
Fri Jul 01, 2022 4:16 pm
Forum: RPG IV
Topic: Encode Base64 doesn't return the correct value
Replies: 13
Views: 130551

Re: Encode Base64 doesn't return the correct value

What's really needed is to see how you do the call to Scott's routine. The variable definitions etc. Repeating the same basic stuff you showed before doesn't help.
by jonboy49
Tue Jun 21, 2022 8:18 pm
Forum: RPG IV
Topic: Binary to Integer
Replies: 3
Views: 10671

Re: Binary to Integer

It is tough to tell what you have done wrong since you have omitted the most important thing - how the field is defined in your RPG or how you populated it. What i can tell you is that the value you see equates to spaces - so I would guess that the field is defined in an unititialized DS and is ...
by jonboy49
Sat Jun 11, 2022 7:50 am
Forum: YAJL-ILE
Topic: parse error: premature EOF
Replies: 8
Views: 44322

Re: parse error: premature EOF

I still need what I asked for. How is the variable defined and how is it populated?

P.S. The file you sent is either corrupt or encrypted - it looks nothing like the data you posted earlier.
by jonboy49
Fri Jun 10, 2022 7:58 pm
Forum: YAJL-ILE
Topic: parse error: premature EOF
Replies: 8
Views: 44322

Re: parse error: premature EOF

How is the variable json defined? How is it populated? You're giving us very little to work with.
by jonboy49
Thu Jun 09, 2022 5:22 pm
Forum: YAJL-ILE
Topic: parse error: premature EOF
Replies: 8
Views: 44322

Re: parse error: premature EOF

Your third parm makes no sense. If you are using %addr(json:*data) as the second parm then the third should be %len(json) - no need for a trim.

Don't know why it would affect anything though.
by jonboy49
Tue May 31, 2022 2:32 pm
Forum: RPG IV
Topic: Return multiple records from an RPG to a REST consumer
Replies: 8
Views: 16668

Re: Return multiple records from an RPG to a REST consumer

Sorry for the delay - I missed the posting of your request.

The video can be found here:

https://us02web.zoom.us/rec/play/3penvq1CcoI2UwH6C-D_vD3ozKvkzftrpGqwzKiLSV5B40bR0Tr0akRWzUXKTS9vG2OGtvizvhyBgynz.vYfkH413yEo4xHTI

Let me know if you have any questions. Business email is jon dot paris at ...
by jonboy49
Tue May 17, 2022 10:30 pm
Forum: RPG IV
Topic: Decoding Base64 data does not return the original string value
Replies: 6
Views: 16717

Re: Decoding Base64 data does not return the original string value

Scott Klement wrote: Tue May 17, 2022 7:18 am Jon,

He's using the Apache Portable Runtime …
Thanks Scott - that’ll teach me assume that on your forums people only ask about your routines!

I’d not heard of the APR ones.
by jonboy49
Tue May 17, 2022 5:30 am
Forum: RPG IV
Topic: Decoding Base64 data does not return the original string value
Replies: 6
Views: 16717

Re: Decoding Base64 data does not return the original string value

Difficult to know what you did wrong because you didn't include the code for your custom encode/decode routines!

This works though using Scott's original code from his site.

**FREE
Ctl-Opt DftActGrp(*No) BndDir('BASE64V11/BASE64');

/copy base64v11/qrpglesrc,base64_h

DCL-S Encoded char(510) inz ...
by jonboy49
Fri May 13, 2022 9:41 pm
Forum: HTTPAPI
Topic: Provider Authorization
Replies: 6
Views: 14049

Re: Provider Authorization

HTTPAPI is intended as a tool set for _Consumption_ of web services - not for providing them.

I thought that Scott's examples in his handout showed this.

Authentication would normally be taken care of by the Apache server that you would configure to supply the service.

Depending on the volume of ...
by jonboy49
Thu Apr 21, 2022 7:57 pm
Forum: YAJL-ILE
Topic: reading JSON
Replies: 6
Views: 14458

Re: reading JSON

At first glance this looks like a good use-case for DATA-INTO with YAJLINTO. Is there a specific reason for doing it the hard way?

If you use the YAJLGEN command it will even generate a best-guess DS for you to handle it. You'll need to adjust sizes and repeats but it will be simpler than the ...