Search found 206 matches
- Fri Nov 19, 2021 9:42 pm
- Forum: YAJL-ILE
- Topic: DATA-INTO Failing
- Replies: 14
- Views: 29613
Re: DATA-INTO Failing
Basically all you need to do is to move that code (slightly simplified) inside the subprocedure that I showed. Right now your code is iterating through the repairingoutletrecord array. The %Handler process will do that for you. It iterates through the JSON so that you only get one repairingoutletrec...
- Fri Nov 19, 2021 7:40 pm
- Forum: YAJL-ILE
- Topic: DATA-INTO Failing
- Replies: 14
- Views: 29613
Re: DATA-INTO Failing
Since I already had your code running (and I was bored) I did a quick %Handler version - this should give you an idea of how it has to work. It is currently set to process just one REPAIRINGOUTLETRECORD at a time - that would allow the individual nested DS to grow significantly and it would all stil...
- Fri Nov 19, 2021 3:28 pm
- Forum: YAJL-ILE
- Topic: DATA-INTO Failing
- Replies: 14
- Views: 29613
Re: DATA-INTO Failing
In the version of the RPG you posted the Dim was 7. See here:
Code: Select all
num_WORKINPROGRESSCLAIMSRECORD int(10) inz(0);
dcl-ds WORKINPROGRESSCLAIMSRECORD dim(7);
TRACKINGNUMBER varchar(10) inz('');
REPAIRORDERNUMBER varchar(8) inz('');
- Thu Nov 18, 2021 8:44 pm
- Forum: YAJL-ILE
- Topic: DATA-INTO Failing
- Replies: 14
- Views: 29613
Re: DATA-INTO Failing
First thing I found was that the size of your work in progress claims record array of 7 was too small. I raised it to 30 and that ran further. Then I got a decimal conversion error which was apparently caused by a currentlandedcostmarkup value of "" (i.e. an empty string) when you have tol...
- Thu Nov 11, 2021 12:03 am
- Forum: HTTPAPI
- Topic: SoapAction
- Replies: 10
- Views: 21014
- Wed Nov 10, 2021 8:19 pm
- Forum: HTTPAPI
- Topic: SoapAction
- Replies: 10
- Views: 21014
Re: SoapAction
I don't quite understand why you think that 64 chars is an issue. Example 16 for example uses a SOAP request way bigger than 64 characters.
- Thu Oct 07, 2021 11:52 am
- Forum: HTTPAPI
- Topic: Adding Auth Key to HTTP Header
- Replies: 5
- Views: 14656
- Tue Sep 28, 2021 2:22 pm
- Forum: RPG IV
- Topic: MCH3601 - Pointer not set for location referenced
- Replies: 2
- Views: 9773
Re: MCH3601 - Pointer not set for location referenced
Usual reason is just what it says ... you tried to use a pointer that has not been set. Possible causes: - Parameter that wasn't passed and not tested for - Call to a YAJL function that returns a pointer that did not result in a "hit" and so the pointer was not set and then attempted to be...
- Fri Sep 24, 2021 3:53 pm
- Forum: HTTPAPI
- Topic: Adding Auth Key to HTTP Header
- Replies: 5
- Views: 14656
Re: Adding Auth Key to HTTP Header
Perhaps if you showed us what you are sending with Postman we could understand the type of authentication you are trying to do.
- Mon Aug 30, 2021 7:55 pm
- Forum: YAJL-ILE
- Topic: trying to output JSONL (anybody heard of it?)
- Replies: 3
- Views: 9831
Re: trying to output JSONL (anybody heard of it?)
Looking at the sample data it looks as if an easy approach would be to use DATA-GEN with the YAJL generator to place the json in a varchar variable, then add the CR/LF (or whatever you need) and write it out to the IFS. Could easily buffer it in a large varchar field.