Search found 206 matches

by jonboy49
Wed Dec 21, 2022 8:59 pm
Forum: Other ScottKlement.com Tools
Topic: Data issue while transferring data From Mainframe to IBM i
Replies: 8
Views: 12587

Re: Data issue while transferring data From Mainframe to IBM i

What does the defintion of the file look like? Both on the mainframe side and on the IBM i?

What does the data in the IFS file look like?

And what does your CPY... command look like?

Comp-3 is packed decimal so that shouldn't be an issue.
by jonboy49
Wed Dec 07, 2022 11:45 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11575

Re: FOPEN(

Using your DATA-INTO as a base it would be this: dcl-s IFS_filename varchar(200) inz('fullepathname_Of_IFSFile'); data-into putapiwms_err %DATA( IFS_filename : 'doc=file case=convert allowmissing=yes allowextra=yes trim=none countprefix=num_') %PARSER('YAJLINTO'); By the way, the -1 return probably ...
by jonboy49
Tue Dec 06, 2022 11:33 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11575

Re: FOPEN(

I mentioned this before but you seem to have missed it. You are specifying O_WRONLY on the open(). That says explicitly only to allow _write_ operations! So it is not surprising that a read() fails. In fact, if you are opening for read your options really make no sense. Look them up and you'll see. ...
by jonboy49
Sun Dec 04, 2022 12:38 pm
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11575

Re: FOPEN(

Scott Klement wrote: Sun Dec 04, 2022 1:56 am Well, if he were calling the open() API, yes. O_TRUNC makes no sense in the context of fopen()
Good point - I must try to stop answering questions before I'm awake!

But what could cause the file content to disappear then?
by jonboy49
Sat Dec 03, 2022 12:59 pm
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11575

Re: FOPEN(

In addition Scott, unless I am misreading it, he is also opening the file for write with O_TRUNC which I believe is what is causing the file to be empty after the close.

Looks like a case of cloning an existing piece of IFS code.
by jonboy49
Thu Dec 01, 2022 8:49 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20426

Re: XML-INTO XML parser detected error code 2.

The problem (maybe this was what Jon was saying?) is the path. Your path doesn't include all of the XML elements it needs to get to the "limits" tag. Notice the outermost element of your document is soapenv:Envelope, but for some reason your path starts at "result". Yup that was...
by jonboy49
Thu Dec 01, 2022 5:50 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20426

Re: XML-INTO XML parser detected error code 2.

Well there are errors in the XML you posted so it is difficult to tell where the problem may lie. Are you sure anything gets loaded - with the path you show I wouldn't expect it to find anything, The error message you received also included information on where the error was detected. You haven't sh...
by jonboy49
Wed Nov 30, 2022 8:14 pm
Forum: YAJL-ILE
Topic: How to set response headers
Replies: 6
Views: 2225

Re: How to set response headers

Not a topic I am (yet) familiar with but I found this useful as an introduction. https://remainsoftware.com/blog/cors-ex ... rogrammers

Scott will know for sure but I suspect that using yajl_writeStdout() will not cut it as it requires a two-stage operation.
by jonboy49
Tue Nov 29, 2022 10:19 pm
Forum: HTTPAPI
Topic: Server using a single key authentication
Replies: 9
Views: 7237

Re: Server using a single key authentication

Paul ... Postman is a TESTING tool. You use it to check that you can connect to a given web service. I don't use it much so I can't be certain, but most tools in this arena require _you_ to supply the key as I did in this example of manually using Postman to make the same Zoom API call I described b...