Based on the 7.3 manual https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasc/datainto.htm it says the error code is based on the parser, which appears to be YAJLINTO. Here’s a post, don’t see a fix in it sadly, about this: https://archive.midrange.com/rpg400-l/202005/msg00215.html It shows the error 1002 as: 1002: lexical error: invalid char in json text.█ So maybe there is an invalid character in the string? Don’t see in the file you sent but it might have been converted when the data was saved to the IFS. Maybe run debug and display the value, use eval var:x to see the actual hex value. Good luck! Michael Mayer-Oakes Data Scientist 500 Crocker Drive. Vacaville, CA. 95688 Phone: 707-452-2868 | www.mariani.com Celebrating over 100 years of being your Global Supplier of Dried Fruits and Snacks. Please consider the environment before printing this email. From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx>
On Behalf Of John Place I keep getting an odd error code and I cant determine what I’m doing wrong, here is the code to get the data: I send the DataLine to an IFS file so I can capture the output of the regular _expression_ just to visualize what I’m getting, regarding the regular _expression_ I have do this in
order to parse the JSON file and this works just fine if I capture the file into an IFS file then use Grep to remove the part of the JSON that causes the error, however when I capture just the output to a variable is when the error occurs, I have a feeling
its being caused by the regular _expression_ however the DataLine variable looks identical to the file I produce using Grep. This is where the error occurs: Thoughts? Keeping in mind this works…. -- Thank You, |
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi