Search found 23 matches
- Fri Oct 21, 2022 12:02 pm
- Forum: YAJL-ILE
- Topic: Error 1002
- Replies: 5
- Views: 3014
Re: Error 1002
The problem was a series of Hex 3Fs in the data. It may have not translated when I copied and posted the JSON. I did a %SCANRPL to replace the 3Fs with a blank, and it worked. Thanks for all the help.
- Thu Oct 20, 2022 8:28 pm
- Forum: YAJL-ILE
- Topic: Error 1002
- Replies: 5
- Views: 3014
Re: Error 1002
// inbound json structure. dcl-ds result qualified dim(1); dcl-ds shipment; id char(36); dcl-ds identifiers dim(99); type char(50); value char(50); end-ds; dcl-ds attributes dim(99); blanks char(100); end-ds; shipmentShareLink varchar(500); createdDateTime char(24); lastModifiedDateTime char(24); d...
- Thu Oct 20, 2022 3:23 pm
- Forum: YAJL-ILE
- Topic: Error 1002
- Replies: 5
- Views: 3014
Error 1002
I'm getting an 1002 error when trying to use Data-Into with YAJLINTO. This is in the joblog: 1002: lexical error: invalid character inside string.█ The parser for the DATA-INTO operation detected error code 1002. Function check. RNX0357 unmonitored by WSPROCJSON at statement 0000000228, instruction ...
- Wed Jul 06, 2022 4:30 pm
- Forum: RPG IV
- Topic: Troubleshooting the QC2LE write subproc
- Replies: 6
- Views: 5657
Re: Troubleshooting the QC2LE write subproc
I've tried 1208 and 819. Both give me garbage. That Bob Cozzi thing with opening and closing then opening again just seems to work, so that's what I do. I've actually found a more elegant solution. I save the JSON in a CLOB in a database table. THen, in Profound Logic, I wrote a program that display...
- Tue Jul 05, 2022 4:18 pm
- Forum: RPG IV
- Topic: Troubleshooting the QC2LE write subproc
- Replies: 6
- Views: 5657
Re: Troubleshooting the QC2LE write subproc
Ok, by eliminating the second open, I'm able to write to the stream file. However, the text is garbage. I'm guessing this will have something to do with the CODESET/CCSID.
Any ideas?
Any ideas?
- Tue Jul 05, 2022 2:37 pm
- Forum: RPG IV
- Topic: Troubleshooting the QC2LE write subproc
- Replies: 6
- Views: 5657
Troubleshooting the QC2LE write subproc
I have a weird thing going on. I have the following code in one program: fd = open('/mwalter/urlUSed.txt': O_WRONLY+O_CREAT+O_TRUNC+O_APPEND+O_CODEPAGE : S_IRGRP + S_IWGRP + S_IXGRP : 819); callp close(fd); oFlag = O_WRONLY+O_APPEND+O_TEXTDATA; // Open the file and write the URL to the file. fd = op...
- Wed Jun 29, 2022 3:19 pm
- Forum: YAJL-ILE
- Topic: Problem copying a node to a stream file
- Replies: 7
- Views: 3049
Re: Problem copying a node to a stream file
Same here. And, I was in debug when I saw that. I was looking at the second argument of the YAJL_STRINGIFY procedure.
Thanks,
Thanks,
- Tue Jun 28, 2022 11:56 am
- Forum: YAJL-ILE
- Topic: Problem copying a node to a stream file
- Replies: 7
- Views: 3049
Re: Problem copying a node to a stream file
Getting this error: ERROR decoding EStdString
I pass the pointer to the doc node to another program. Then do the work to save the document node to the stream file and get this error.
I pass the pointer to the doc node to another program. Then do the work to save the document node to the stream file and get this error.
- Mon Jun 20, 2022 7:08 pm
- Forum: YAJL-ILE
- Topic: Problem copying a node to a stream file
- Replies: 7
- Views: 3049
Re: Problem copying a node to a stream file
Thanks, Scott.
- Wed Jun 15, 2022 11:44 am
- Forum: YAJL-ILE
- Topic: Problem copying a node to a stream file
- Replies: 7
- Views: 3049
Re: Problem copying a node to a stream file
Ok, I see that I can only write out string nodes. My SQL was wrong, which is why I wasn't getting anything in my error log.
So, Is there a way to capture the entire JSON string into a variable or a stream file?
So, Is there a way to capture the entire JSON string into a variable or a stream file?