Search found 206 matches

by jonboy49
Fri Aug 12, 2022 12:07 am
Forum: General
Topic: Using IBM i SMTP Client to relay email to GMail
Replies: 9
Views: 11691

Re: Using IBM i SMTP Client to relay email to GMail

We use PHPMailer. I'll try to dig out the script we are using which should remind me of the requirements.
by jonboy49
Thu Aug 11, 2022 12:53 am
Forum: General
Topic: Using IBM i SMTP Client to relay email to GMail
Replies: 9
Views: 11691

Re: Using IBM i SMTP Client to relay email to GMail

We use PHP to send emails via a gmail SMTP server and have been doing so for a number of years. It works fine but did take some playing around with to get it right initially.
by jonboy49
Fri Aug 05, 2022 11:49 pm
Forum: YAJL-ILE
Topic: DATA-INTO vs. YAJL Procedures
Replies: 9
Views: 3762

Re: DATA-INTO vs. YAJL Procedures

Yes there is - it is in my text that you quoted! Use countprefix for the DS representing the object (or indeed for any item that can be omitted) and you don't need it. It is only required if you don't tell RPG how to notify you of the actual count of an element. You'll find several examples of using...
by jonboy49
Fri Aug 05, 2022 5:04 pm
Forum: YAJL-ILE
Topic: Defining array of values for DATA-INTO
Replies: 2
Views: 1588

Re: Defining array of values for DATA-INTO

I've not encountered this before but have you tried simply coding it as:

Code: Select all

BundleIdList  int(5)  Dim(nn);
What does YAJLGEN show?
by jonboy49
Fri Aug 05, 2022 2:32 pm
Forum: General
Topic: XML-SAX strange issue
Replies: 6
Views: 5221

Re: XML-SAX strange issue

You're welcome and if you are indeed in learning mode:

https://authory.com/JonParisAndSusanGan ... e-Form-RPG

That may help.

I was going to call the series the "Old Farts Guide ..." but they wouldn't;t let me <grin>
by jonboy49
Thu Aug 04, 2022 6:56 pm
Forum: General
Topic: XML-SAX strange issue
Replies: 6
Views: 5221

Re: XML-SAX strange issue

"I'm just calling the program from command line for testing" And there is your problem right there. Your code is expecting a 256 char variable but what it is getting is a 32 byte character variable - which is the default from the command line. The system will have padded with blanks up to...
by jonboy49
Thu Aug 04, 2022 5:16 pm
Forum: General
Topic: XML-SAX strange issue
Replies: 6
Views: 5221

Re: XML-SAX strange issue

Well you don't show us the original content of the file name parm so we can't even be sure that it was the same. If this works (re-done in free-form 'cos I can't be bothered to work out the spacing): Dcl-s XMLfile varchar(256) inz('/Home/Xml/ActualFile.XML'); xml-sax %handler(XmlHandler: IgnoreIt) %...
by jonboy49
Tue Jul 19, 2022 3:07 pm
Forum: YAJL-ILE
Topic: DATA-INTO vs. YAJL Procedures
Replies: 9
Views: 3762

Re: DATA-INTO vs. YAJL Procedures

Today may be your lucky day! In response to a similar issue Scott has _literally_ just added a new %PARSER option called "skip_nulls". When enabled it will simply cause any element with a null value to not be reported to RPG. You can read about it in this thread https://www.scottklement.co...
by jonboy49
Tue Jul 19, 2022 12:55 pm
Forum: YAJL-ILE
Topic: DATA-INTO vs. YAJL Procedures
Replies: 9
Views: 3762

Re: DATA-INTO vs. YAJL Procedures

Empty objects shouldn't present a problem. It is when the json represents an empty object by assigning it a null value that DATA-INTO has a problem. As to allowmissing you really shouldn't need it. Use countprefix for the DS representing the object (or indeed for any item that can be omitted) and yo...
by jonboy49
Sun Jul 17, 2022 3:44 pm
Forum: YAJL-ILE
Topic: Problem with import stream file json
Replies: 5
Views: 2456

Re: Problem with import stream file json

Nice Scott - I think I'll still put an IDEA forward to have DATA-INTO offer an option for compound elements but this will certainly help a lot of people who have encountered this issue.

Thanks.