Search found 212 matches
- Wed Jan 10, 2024 7:35 pm
- Forum: YAJL-ILE
- Topic: YAJL function for deleting node
- Replies: 2
- Views: 2834
Re: YAJL function for deleting node
Directly within RPG your only option would be to use DATA-INTO with YAJLINTO to read the json, then copy only the required portions to a new DS and use DATA-GEN with YAJLGEN to regenerate the json. It is possible that you could achieve this without the use of a second DS by utilizing countprefix and...
- Wed Nov 29, 2023 4:43 pm
- Forum: YAJL-ILE
- Topic: YAJL lexical error: invalid character inside string
- Replies: 4
- Views: 9654
Re: YAJL lexical error: invalid character inside string
Well they are not "invalid". They appear to be escape characters. In JSON any character that has special meaning must be escaped if it is part of the data. For example this: In json special characters, such as " must be escaped Would have to be represented as: In json special characte...
- Fri Nov 10, 2023 10:07 pm
- Forum: HTTPAPI
- Topic: Special characters in URL
- Replies: 8
- Views: 15459
Re: Special characters in URL
That URL should be: Servername.company.com:1234/api/ProcessMessage?custID=GPD&facility=01 surely?
The "?" introduces the query string. "&"s separate the parameters.
As it is now the second "?" is being treated as part of the value for custID
The "?" introduces the query string. "&"s separate the parameters.
As it is now the second "?" is being treated as part of the value for custID
- Wed Nov 08, 2023 11:46 pm
- Forum: HTTPAPI
- Topic: gsk_env_init Error from Iseries to https
- Replies: 7
- Views: 15494
Re: gsk_env_init Error from Iseries to https
What does the HTTPAPI debug log show? If it is a certificate issue it will show there. Are you certain the service is available? How did you verify that?
- Wed Nov 01, 2023 9:33 pm
- Forum: RPG IV
- Topic: Using JSON Nested Data Structures in Multiple Programs
- Replies: 4
- Views: 12128
Re: Using JSON Nested Data Structures in Multiple Programs
I would (and do) do exactly what you have suggested. In fact I go one step further in that the /COPY contains the DS as a template. Like so: Dcl-DS myDS_T Qualified Template; field1 char(10); field2 int(5); Dcl-DS nestedDS Dim(20); field3 varchar(40); End-DS; End-DS; That way you can simply referenc...
- Wed Oct 04, 2023 4:28 pm
- Forum: RPG IV
- Topic: Debugging a CGI RPG Web Program
- Replies: 2
- Views: 9544
Re: Debugging a CGI RPG Web Program
Brad Stone has a brief piece on the topic here: https://www.fieldexit.com/forum/display?threadid=48 CNX have a nice on here: https://www.cnxcorp.com/blog/debug-back-end-production-jobs-using-strdbg Jan did a piece for MC Press here: https://www.mcpressonline.com/programming/rpg/techtip-debugging-cgi...
- Sun Sep 17, 2023 9:55 pm
- Forum: General
- Topic: failed to create command httpapi upon installation of version 1.47
- Replies: 1
- Views: 7564
Re: failed to create command httpapi upon installation of version 1.47
This issue was addressed here: https://www.scottklement.com/forums/viewtopic.php?t=370
Scott noted at the time that the latest version fixed the problem. I believe 1.49 is the latest.
P.S. This would have been better asked in the HTTPAPI forum.
Scott noted at the time that the latest version fixed the problem. I believe 1.49 is the latest.
P.S. This would have been better asked in the HTTPAPI forum.
- Thu Sep 14, 2023 12:54 pm
- Forum: HTTPAPI
- Topic: return code -1
- Replies: 12
- Views: 20749
Re: return code -1
That's a pretty old version - I believe the current version is 1.49. So first advice is to update HTTPAPI.
P.S. Might I also suggest using a regular zip file. My Mac thinks rar files are videos and I haven't the time to search for a way to unzip your source.
P.S. Might I also suggest using a regular zip file. My Mac thinks rar files are videos and I haven't the time to search for a way to unzip your source.
- Sat Sep 09, 2023 6:13 pm
- Forum: YAJL-ILE
- Topic: Displaying JSON String in a Subfile using YAJL
- Replies: 4
- Views: 10184
Re: Displaying JSON String in a Subfile using YAJL
If you have a nested data structure as the source of your JSON why not just use DATA-GEN with YAJLGEN rather than the YAQJL routines directly?
- Wed Sep 06, 2023 11:52 pm
- Forum: General
- Topic: Help retrieving file data definitions OS v5r4,cif possible
- Replies: 3
- Views: 9540
Re: Help retrieving file data definitions OS v5r4,cif possible
Well, it looks like Infor themselves had conversion software at one time - and therefore still knew the layouts. Whether they still have the tools and/or would supply the layouts you'll have to anthem. Here's the link I found https://support.infor.com/esknowbase/root/DLPublic/12452/Cross_Application...